glutSetWindowData man page
glutSetWindowData — Set the user data for the current window
OpenGLUT - window
Arbitrary client-supplied pointer.
This associates an arbitrary
value with the
. This is especially useful in client-side callbacks that service many windows, if the client needs to know more about the window than OpenGLUT normally will provide.