| Home
| Previous
| Next
| Up

FlipToStereoBuffer

Makes a stereo flippable buffer pair visible to the user

Declaration

void GA_bufferFuncs::FlipToStereoBuffer(
GA_buf *left,
GA_buf *right,
N_int32 waitVRT)

Prototype In

snap/graphics.h

Parameters

left | SNAP buffer to make visible for the left eye
right | SNAP buffer to make visible for the right eye
waitVRT | Flags how to wait for vertical retraces (GA_MakeVisibleBufferFlagsType)

Description

This function makes the passed in stereo buffers visible for the active display in stereo mode. If stereo mode is enabled, the left and right buffers are enabled for stereo flipping, alternating between the left and right buffers every vertical retrace period. If stereo is not enabled, the visible buffer becomes the left buffer and the right buffer value is ignored. 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, FlipToBuffer, GetFlipStatus, WaitTillFlipped

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