---
name: "enable_triple_buffer"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/enable_triple_buffer"
---

# enable\_triple\_buffer(3alleg)

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**(3alleg)](/gfx_capabilities/3alleg.md), [**request\_scroll**(3alleg)](/request_scroll/3alleg.md), [**request\_video\_bitmap**(3alleg)](/request_video_bitmap/3alleg.md), [**ex3buf**(3alleg)](/ex3buf/3alleg.md), [**exupdate**(3alleg)](/exupdate/3alleg.md)
