Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

CentOS 7.0 - man page for glutreshapefunc (centos section 3)

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 whenever 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 pas- sively 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


All times are GMT -4. The time now is 08:14 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password