glutGetWindowData man page
glutGetWindowData — Get the user data for the current window
OpenGLUT - window
This function will return whatever
value is associated with the
via glutSetWindowData(). This is
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
keep track of the
s in a global list and search for the
in that list. But this is quicker than searching a data structure, and allows you to avoid the use of globals for this.
Explore man page connections for glutGetWindowData(3).