1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutCreateWindow — Create a new top-level window
5

LIBRARY

7     OpenGLUT - window
8

SYNOPSIS

10     #include <openglut.h>
11
12     int
13     glutCreateWindow(const char* title);
14

PARAMETERS

16      title       Title for created window
17

DESCRIPTION

19     This function sends a request for a window to be constructed.  OpenGLUT
20     immediately constructs a data structure to track further events with the
21     window, on the theory that eventually the window manager will get back to
22     us with a real window.  This allows us to begin registering callbacks
23     immediately.
24
25     In fact, you  must   register a display callback via glutDisplayFunc()
26     before you enter glutMainLoop().
27
28     For onscreen windows, you should not depend upon the window concretely
29     existing or being visibile until you are told that it exists and is visi‐
30     ble via a registered callback.
31
32     The return value is an  int.    It should be positive for valid windows
33     or 0 if failure occurred for some reason (Though traditional GLUT tends
34     to bail out and abort rather than returning errors.)  The integer is your
35      window id  .  Old GLUT promises that these integers are ``small''; we do
36     not reuse old  id  s, but do produce them sequentially.
37
38     You can change the title later via glutSetWindowTitle().
39

SEE ALSO

41     glutDestroyWindow(3) glutCreateSubWindow(3) glutSetWindowTitle(3)
42     glutCreateMenuWindow(3)
43
44
45
46
47                                     Epoch
Impressum