1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutGetWindowData — Get the user data for the current window
5

LIBRARY

7     OpenGLUT - window
8

SYNOPSIS

10     #include <openglut.h>
11
12     void*
13     glutGetWindowData(void);
14

DESCRIPTION

16     This function will return whatever  void*  value is associated with the
17     current window   via glutSetWindowData().  This is  NULL  if you did not
18     associate a pointer with your window.  This can be useful in a situation
19     where you have a single callback function performing services for many
20     windows.  You  could   keep track of the  window id  s in a global list
21     and search for the  current window   in that list.  But this is quicker
22     than searching a data structure, and allows you to avoid the use of glob‐
23     als for this.
24

SEE ALSO

26     glutSetWindowData(3)
27
28
29
30
31                                     Epoch
Impressum