Rechercher une page de manuel
glutGetWindowData
Langue: en
Version: 169997 (fedora - 06/07/09)
Section: 3 (Bibliothèques de fonctions)
BSD mandoc
NAME
glutGetWindowData - Get the user data for the current windowLIBRARY
OpenGLUT - windowSYNOPSIS
In openglut.h Ft void* Fn glutGetWindowData voidDESCRIPTION
This function will return whatever Bf Syvoid* Ef
value is associated with the Bf Li
current window Ef
via glutSetWindowData(). This is Bf Sy
NULL Ef
if you did not associate a pointer with your window. This can be useful in a situation where you have a single callback function performing services for many windows. You Bf Em
could Ef
keep track of the Bf Li
window id Ef
s in a global list and search for the Bf Li
current window Ef
in that list. But this is quicker than searching a data structure, and allows you to avoid the use of globals for this.
SEE ALSO
glutSetWindowData(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre