FlipToBuffer

Makes a flippable buffer visible to the user

Declaration

void GA_bufferFuncs::FlipToBuffer(
GA_buf *buf,
N_int32 waitVRT)

Prototype In

snap/graphics.h

Parameters

buf | SNAP buffer to make visible for display
waitVRT | Flags how to wait for vertical retraces (GA_MakeVisibleBufferFlagsType)

Description

This function makes the passed in buffer visible for the active display. The buffer does not be come visible immediately, but will become visible on the next vertical retrace. The waitVRT flag however determines how the function will wait for the vertical retrace when programming flipping to the visible buffer. The values you can pass in are defined in the GA_MakeVisibleBufferFlagsType enumeration.

If you call this function with waitVRT set to gaTripleBuffer, you can later call the GetFlipStatus function to determine if the visible buffer flip has occurred yet or not.

See Also

SetActiveBuffer, FlipToStereoBuffer, GetFlipStatus, WaitTillFlipped

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