SetStereoDisplayStart

Sets the currently visible stereo display start address.

Declaration

void NAPI GA_driverFuncs::SetStereoDisplayStart(
    N_int32 leftOffset,
    N_int32 rightOffset,
    N_int32 waitVRT)

Prototype In

snap/graphics.h

Parameters

leftOffset

Offset to start of left display image (in bytes)

rightOffset

Offset to start of right display image (in bytes)

waitVRT

Wait for retrace flag

 

Description

This function is identical to the SetDisplayStart function except that it takes both left and right display start address offsets. If the display controller supports a hardware stereo display mode, it will alternate between displaying the left image and right image every vertical retrace. This function is used to program the left and right display start addresses to differnt values for when hardware stereo mode is enabled. Check that the gaHaveStereo flag is set in the GA_modeInfo structure before trying to use this function. The waitVRT flag determines if the function will wait for the vertical retrace when programming the hardware display start address and the following are valid values:

value

Description

0

Schedule change for next retrace and return immediately not 0   - Wait for vertical retrace during programming

Note:    The value passed into this function is always in units of bytes for 8bpp and above display modes (and text modes). For 4bpp display modes the value is defined in units of pixels so that pixel perfect scrolling can be achieved.

See Also

SetDisplayStart, GetDisplayStartStatus, EnableStereoMode, SetActiveBuffer, FlipToStereoBuffer

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