Query: glutreshapefunc
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UNTITLEDLOCAL UNTITLEDNAMEglutReshapeFunc -- Sets the Reshape callback for the current window.LIBRARYOpenGLUT - windowcallbackSYNOPSIS#include <openglut.h> void glutReshapeFunc(void( *callback )( int w, int h ));PARAMETERScallback Client function for reshape-window event.DESCRIPTIONThis 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().CAVEATSUnlike 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 ALSOglutGet(3) glutReshapeWindow(3) Epoch
Related Man Pages |
---|
glutreshapefunc(3glut) - mojave |
glutpopwindow(3) - centos |
glutspecialfunc(3) - centos |
glutswapbuffers(3) - centos |
glutreshapewindow(3glut) - osx |
Similar Topics in the Unix Linux Community |
---|
Error: GL/glut.h: No such file or directory |
How to insert JPEG on each side of the cube using openGL in C |
How to Decode an image using openGL |