| Home
| Previous
| Next
| Up

GA_MakeVisibleBufferFlagsType

Declaration

typedef enum {
gaTripleBuffer = 0,
gaWaitVRT = 1,
gaDontWait = 2
} GA_MakeVisibleBufferFlagsType

Prototype In

snap/graphics.h

Description

Flags passed to the MakeVisibleBuffer function for the waitVRT parameter.

The gaTripleBuffer flag is used to indicate that the visible buffers should be flipped using hardware or software triple buffering where available. This may not be available on all platforms, and if not available gaDontWait is used instead. Hence you may get tearing using this value if the hardware or software triple buffering is not supported and the frame rate of your application is faster than the vertical refresh rate of the display.

The gaWaitVRT flag is used to indicate that the visible buffers should be flipped and that the code should wait for the vertical retrace period before returning. This is necessary to avoid any tearing on the screen if you are doing double buffering, and is the most common value passed to the MakeVisibleBuffer function.

The gaDontWait flag is used to indicate that the visible buffers should be flipped but the code should exit immediately and not wait for the vertical retrace period.

Note: If there are only two flippable buffers allocated, the gaTripleBuffer flag will be converted to the gaWaitVRT parameter.

Members

gaTripleBuffer | Flip the buffers with triple buffering if available
gaWaitVRT | Flip the buffers and wait for vertical retrace
gaDontWait | Flip the buffers and don't wait for retrace

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com