ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

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



glutReshapeWindow(3GLUT)                            GLUT                            glutReshapeWindow(3GLUT)



NAME
       glutReshapeWindow - requests a change to the size of the current window.

SYNTAX
       void glutReshapeWindow(int width, int height);

ARGUMENTS
       width     New width of window in pixels.

       height    New height of window in pixels.

DESCRIPTION
       glutReshapeWindow  requests  a change in the size of the current window. The width and height parame-ters parameters
       ters are size extents in pixels.  The width and height must be positive values.

       The requests by glutReshapeWindow are not processed  immediately.   The  request  is  executed  after
       returning  to  the  main  event loop. This allows multiple glutReshapeWindow, glutPositionWindow, and
       glutFullScreen requests to the same window to be coalesced.

       In the case of top-level windows, a glutReshapeWindow call is considered only a  request  for  sizing
       the  window.  The  window  system  is  free to apply its own policies to top-level window sizing. The
       intent is that top-level windows should be reshaped according glutReshapeWindow's parameters. Whether
       a  reshape actually takes effect and, if so, the reshaped dimensions are reported to the program by a
       reshape callback.

       glutReshapeWindow disables the full screen status of a window if previously enabled.

SEE ALSO
       glutPositionWindow(3G), glutReshapeFunc(3G)


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



GLUT                                                 3.7                            glutReshapeWindow(3GLUT)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.