NVIDIA Corporation
Frame Synchronization User’s Guide
– Version 3.0
35
C
HAPTER
3
Using the OpenGL Extensions
QuerySwapGroupNV
This call returns the swap group number and barrier number to which the device context
is bound.
QueryMaxSwapGroupsNV
This call returns the maximum number of swap groups and swap barriers that are
supported by the implementation.
QueryFrameCountNV
QueryFrameCountNV
returns in
count
the current frame counter for
swapGroup
.
This call returns the current frame count of the swap group.
Function
BOOL QuerySwapGroupNV(HDC hDC,
GLuint *group,
GLuint *barrier);
Parameters In
hDC
- Device context for the frame lock card, or a window residing on the
frame lock card.
Parameters Out
*group
- The group number to which the device context is bound,
or assigned.
*barrier
- The barrier number to which the device context is bound.
Return Values
TRUE:
Success
FALSE:
Failure. In this case,
*group
and
*barrier
are undefined.
Function
BOOL QueryMaxSwapGroupsNV(HDC hDC,
GLuint *maxGroups,
GLuint *maxBarriers);
Parameters In
hDC
- Device context for the frame lock card, or a window residing on the
frame lock card.
Parameters Out
*maxGroups
- The maximum group number supported by the
implementation.
*maxBarriers
- The maximum barrier number supported by the
implementation.
Return Values
TRUE:
Success
FALSE:
Failure. In this case,
*maxGroups
and
*maxBarriers
are
undefined.
Function
BOOL QueryFrameCountNV(HDC hDC, GLuint *count);
Parameters In
hDC
- Device context for the frame lock card, or for a window residing on
the frame lock card.
Parameters Out
*count - The current frame count of the swap group.
Return Values
TRUE:
Frame count successfully retrieved.
FALSE:
Frame count retrieval failed.