TwSetCurrentWindow (function)
Description
This function is intended to be used by applications with multiple graphical windows. It tells AntTweakBar to switch its current context to the context associated to the identifier
Function TwInit must be called once before any call to Window contexts are separated. A tweak bar created in one context cannot be modified or displayed within an other context. Thus two tweak bars with the same name can live in different contexts. Same for enum and structure definitions. To display the tweak bars TwDraw must be called for each window context. Event handling must also be set for each window context. ParameterwindowIDWindow context identifier. This identifier could be any integer. The window context identifier 0 always exist, this is the default context created when AntTweakBar is initialized through TwInit. Return value
Example
See TwDualGLUT (file See also |