NVIDIA Corporation
34
Frame Synchronization User’s Guide
– Version 3.0
C
HAPTER
3
Using the OpenGL Extensions
Exported WGL_NV_swap_group Functions
The exported functions for this extensions are:
•
•
•
•
•
•
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.
BindSwapBarrierNV
This call binds a swap group to a barrier.
Function
BOOL JoinSwapGroupNV(HDC hDC, GLuint group);
Parameters In
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
). If 0, the device
context is unbound from its current group.
Parameters Out
Return Values
TRUE:
Success
FALSE:
Failure
Function
BOOL BindSwapBarrierNV(GLuint group, GLuint barrier);
Parameters In
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
Parameters Out
Return Values
TRUE:
Success
FALSE:
Failure