1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutReshapeFunc — Sets the Reshape callback for the current window.
5

LIBRARY

7     OpenGLUT - windowcallback
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutReshapeFunc(void( *callback )( int w, int h ));
14

PARAMETERS

16      callback     Client function for reshape-window event.
17

DESCRIPTION

19     This registers a function with OpenGLUT, which OpenGLUT will invoke when‐
20     ever the window is reshaped or resized.  Your callback is only invoked
21     when the host window system has actually changed the window size.
22
23     The parameters to your callback are the new width and height for your
24     window.
25
26     If you do not provide a reshape callback, OpenGLUT will simply call
27     glViewport(0,0,  w,   h).
28
29     This callback is bound to the  current window  .
30
31     To ask OpenGLUT about the present dimensions of the  current window  ,
32     you can use glutGet().
33

CAVEATS

35     Unlike other callbacks, GLUT has an  active   default behavior if you do
36     not set this.   (Most event types passively do nothing if you do not
37     specify a callback to handle them.)
38
39     The reshape callback should always be called, if registered, when your
40     window is first created.
41

SEE ALSO

43     glutGet(3) glutReshapeWindow(3)
44
45
46
47
48                                     Epoch
Impressum