NVIDIA Corporation34 Frame Synchronization User’s Guide– Version 3.0CHAPTER 3Using the OpenGL ExtensionsExported WGL_NV_swap_group FunctionsThe exported functions for this extensions are:• JoinSwapGroupNV• BindSwapBarrierNV• QuerySwapGroupNV• QueryMaxSwapGroupsNV• QueryFrameCountNV• ResetFrameCountNVJoinSwapGroupNVThis call adds the OpenGL window with the device context hDC to the swap groupspecified by group. If hDC is already a member of a different group, it is implicitlyremoved from that group first.BindSwapBarrierNVThis 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 theframe 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 35). If 0, the devicecontext is unbound from its current group.Parameters OutReturn Values TRUE:SuccessFALSE: FailureFunction BOOL BindSwapBarrierNV(GLuint group, GLuint barrier);Parameters In hDC - Device context for the frame lock card, or a window residing on theframe 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. Valuemust be between 0 and maxBarrier(see “QueryMaxSwapGroupsNV” on page 35).Parameters OutReturn Values TRUE: SuccessFALSE: Failure