glutReshapeFunc man page on RedHat

Man page or keyword search:  
man Server   29550 pages
apropos Keyword Search (all sections)
Output format
RedHat logo
[printable version]

UNTITLED			     LOCAL			      UNTITLED

NAME
     glutReshapeFunc — Sets the Reshape callback for the current window.

LIBRARY
     OpenGLUT - windowcallback

SYNOPSIS
     #include <openglut.h>

     void
     glutReshapeFunc(void( *callback )( int w, int h ));

PARAMETERS
      callback	   Client function for reshape-window event.

DESCRIPTION
     This registers a function with OpenGLUT, which OpenGLUT will invoke when‐
     ever the window is reshaped or resized.  Your callback is only invoked
     when the host window system has actually changed the window size.

     The parameters to your callback are the new width and height for your
     window.

     If you do not provide a reshape callback, OpenGLUT will simply call
     glViewport(0,0,  w,   h).

     This callback is bound to the  current window  .

     To ask OpenGLUT about the present dimensions of the  current window  ,
     you can use glutGet().

CAVEATS
     Unlike other callbacks, GLUT has an  active   default behavior if you do
     not set this.   (Most event types passively do nothing if you do not
     specify a callback to handle them.)

     The reshape callback should always be called, if registered, when your
     window is first created.

SEE ALSO
     glutGet(3) glutReshapeWindow(3)

				     Epoch
[top]

List of man pages available for RedHat

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net