Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > eee00533ac83fd7ebbf9846dc6d3b77b > files > 279

Io-language-graphics-and-sound-20080330-6.fc15.i686.rpm


<HTML><HEAD><TITLE>Manpage of glutReshapeFunc</TITLE>
</HEAD><BODY>
<H1>glutReshapeFunc</H1>
Section: GLUT (3GLUT)<BR>Updated: 3.7<BR><A HREF="#index">Index</A>
<A HREF="">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

glutReshapeFunc - sets the reshape callback for the current window. 
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>

<PRE>

void glutReshapeFunc(void (*func)(int width, int height));
</PRE>

<A NAME="lbAD">&nbsp;</A>
<H2>ARGUMENTS</H2>

<DL COMPACT>
<DT><I>func</I><DD>
The new reshape callback function. 
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>

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 current 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 subwindows
within a top-level window. Still, reshape callbacks will be triggered for
subwindows when their size is changed using glutReshapeWindow.
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>

glutDisplayFunc, glutReshapeWindow
<A NAME="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>

Mark J. Kilgard (<A HREF="mailto:mjk@nvidia.com">mjk@nvidia.com</A>)
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNTAX</A><DD>
<DT><A HREF="#lbAD">ARGUMENTS</A><DD>
<DT><A HREF="#lbAE">DESCRIPTION</A><DD>
<DT><A HREF="#lbAF">SEE ALSO</A><DD>
<DT><A HREF="#lbAG">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="">man2html</A>,
using the manual pages.<BR>
Time: 19:05:09 GMT, September 15, 2003
</BODY>
</HTML>