---
name: "enable_triple_buffer"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/enable_triple_buffer/3alleg4"
---

# enable\_triple\_buffer(3alleg4)

Enables triple buffering. Allegro game programming library.

## NAME

enable\_triple\_buffer - Enables triple buffering. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int enable\_triple\_buffer();**

## DESCRIPTION

If the GFX\_CAN\_TRIPLE\_BUFFER bit of the gfx\_capabilities field is not  set, you can attempt to enable it by calling this function. In particular  if you are running in mode-X in a clean DOS environment, this routine  will enable the timer retrace simulator, which will activate the triple  buffering functions.

## RETURN VALUE

Returns zero if triple buffering is enabled, -1 otherwise.

## SEE ALSO

**gfx\_capabilities**(3alleg4), **request\_scroll**(3alleg4), **request\_video\_bitmap**(3alleg4), **ex3buf**(3alleg4), **exupdate**(3alleg4)
