This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



glutReshapeFunc(3GLUT)                              GLUT                              glutReshapeFunc(3GLUT)



NAME
       glutReshapeFunc - sets the reshape callback for the current window.

SYNTAX
       void glutReshapeFunc(void (*func)(int width, int height));

ARGUMENTS
       func      The new reshape callback function.

DESCRIPTION
       glutReshapeFunc  sets  the reshape callback for the current window. The reshape callback is triggered
       when a window is reshaped. A reshape callback is also triggered immediately before a  window's  first
       display  callback after a window is created or whenever an overlay for the window is established. The
       width and height parameters of the callback specify the new window size in pixels. Before  the  call-back, callback,
       back, the current window is set to the window that has been reshaped.

       If  a reshape callback is not registered for a window or NULL is passed to glutReshapeFunc (to dereg-ister deregister
       ister a previously registered callback), the default reshape callback is used. This default  callback
       will simply call glViewport(0,0,width,height) on the normal plane (and on the overlay if one exists).

       If an overlay is established for the window, a single reshape callback is generated. It is the  call-back's callback's
       back's  responsibility to update both the normal plane and overlay for the window (changing the layer
       in use as necessary).

       When a top-level window is reshaped, subwindows are not reshaped. It is up to  the  GLUT  program  to
       manage  the size and positions of subwindows within a top-level window. Still, reshape callbacks will
       be triggered for subwindows when their size is changed using glutReshapeWindow.

SEE ALSO
       glutDisplayFunc(3G), glutReshapeWindow(3G)


AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)



GLUT                                                 3.7                              glutReshapeFunc(3GLUT)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...