C
3
HAPTER
Using the OpenGL Extensions
Exported WGL_NV_swap_group Functions
The exported functions for this extensions are:
JoinSwapGroupNV
•
BindSwapBarrierNV
•
QuerySwapGroupNV
•
QueryMaxSwapGroupsNV
•
QueryFrameCountNV
•
ResetFrameCountNV
•
JoinSwapGroupNV
This call adds the OpenGL window with the device context hDC to the swap group
specified by group. If hDC is already a member of a different group, it is implicitly
removed from that group first.
Function
Parameters In
Parameters Out
Return Values
BindSwapBarrierNV
This call binds a swap group to a barrier.
Function
Parameters In
Parameters Out
Return Values
34
BOOL JoinSwapGroupNV(HDC hDC, GLuint group);
hDC - Device context for the frame lock card, or a window residing on the
frame lock card.
group - Swap group number to which the device context is to be assigned.
The value must be between 0 and maxGroups
(see
"QueryMaxSwapGroupsNV" on page
context is unbound from its current group.
TRUE:Success
FALSE: Failure
BOOL BindSwapBarrierNV(GLuint group, GLuint barrier);
hDC - Device context for the frame lock card, or a window residing on the
frame lock card.
group - Swap group number that is to be bound to a barrier.
barrier - Barrier number to which the swap group is to be bound. Value
must be between 0 and maxBarrier
(see
"QueryMaxSwapGroupsNV" on page
TRUE: Success
FALSE: Failure
Frame Synchronization User's Guide– Version 3.0
35). If 0, the device
35).
NVIDIA Corporation