Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutreshapefunc(3glut) [osx man page]

glutReshapeFunc(3GLUT)						       GLUT						    glutReshapeFunc(3GLUT)

glutReshapeFunc - sets the reshape callback for the current window. SYNTAX
#include <GLUT/glut.h> 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 callback, the cur- rent 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 deregister 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 callback'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 subwin- dows within a top-level window. Still, reshape callbacks will be triggered for subwindows when their size is changed using glutReshapeWin- dow. SEE ALSO
glutDisplayFunc, glutReshapeWindow AUTHOR
Mark J. Kilgard ( GLUT
3.7 glutReshapeFunc(3GLUT)

Check Out this Related Man Page

glutReshapeWindow(3GLUT)					       GLUT						  glutReshapeWindow(3GLUT)

glutReshapeWindow - requests a change to the size of the current window. SYNTAX
#include <GLUT/glut.h> 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 parameters 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, glutReshapeFunc AUTHOR
Mark J. Kilgard ( GLUT
3.7 glutReshapeWindow(3GLUT)
Man Page