GsDefDispBuff

Defines the double buffers used for drawing

void GsDefDispBuff (
        int x0,
        int y0,
        int x1,
        int y1,
)

Arguments

x0, y0 Buffer 0 origin (upper left-hand) coordinates
x1, y1 Buffer 1 origin (upper left-hand) coordinates

Return Value

None.

Explanation

The display areas in the frame buffer used for double buffering are established. The x0, y0 parameters specify the coordinates within the frame buffer for buffer #0. The x1, y1 parameters specify the coordinates within the frame buffer for buffer #1. If x0, y0 and x1, y1 are specified as the same coordinates in non-interlaced mode, the double buffers are released. However, double-buffer swapping of even-numbered and odd-numbered fields is performed automatically when x0, y0 and x1, y1 are specified as the same coordinates in interlaced mode. Normally, buffer #0 is located at (0,0) and buffer #1 is located at (0, yres), where yres is the vertical resolution specified using the GsInitGraph() function.
The GsSwapDispBuff() function is used to swap the double buffers.
Double buffering is implemented using the GPU/GTE offset which can be set using GsInitGraph().
When using the GPU to manage the offset, the double buffer offset will be added at the time of drawing, not at the time of packet creation.

See Also

GsInitGraph(), GsSwapDispBuff()