Sets the display mode to double buffer mode.
void doublebuffer( )
Note: In using FORTRAN syntax, it is necessary to spell out DOUBLEBUFFER because the word double is a reserved word.
The doublebuffer subroutine reorganizes the frame buffer bitplanes into a pair of frame buffers, the front buffer and the back buffer. In double buffer mode, only the front buffer is displayed. Drawing routines normally update only the back bitplanes; the frontbuffer and backbuffer subroutines can override the default.
The actual repartitioning of the frame buffer into double buffer mode does not occur until the gconfig subroutine is called. The gconfig subroutine sets frontbuffer = False and backbuffer = True in double buffer mode.
To determine the number of bitplanes available in each buffer, use the getgdesc subroutine.
Note: This subroutine cannot be used to add to a display list.
The example C language program doublebuff.c sets the display mode for double buffering with the doublebuffer subroutine to allow smooth motion when moving and redrawing a cube.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
|/usr/include/gl/gl.h||Contains C language constant and variable type definitions for GL.|
|/usr/include/gl/fgl.h||Contains FORTRAN constant and variable type definitions for GL.|
Enabling updating in the back buffer with the backbuffer subroutine.
Reconfiguring the system with the gconfig subroutine.
Finding out which buffers are enabled for writing with the getbuffer subroutine.
Returning the current display mode with the getdisplaymode subroutine.
Returning the number of bitplanes available in each buffer with the getgdesc subroutine.
Enabling updating in the front buffer with the frontbuffer subroutine.
Writing to and displaying all bitplanes with the singlebuffer subroutine.
Exchanging the font and back buffers with the swapbuffers subroutine.
Understanding the Hardware Used by GL in GL3.2 Version 4 for AIX: Programming Concepts.
Configuring the Frame Buffer, Creating Animated Scenes.