Sophie

Sophie

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

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


<HTML><HEAD><TITLE>Manpage of glutGet</TITLE>
</HEAD><BODY>
<H1>glutGet</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>

glutGet - retrieves simple GLUT state represented by integers. 
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>

<PRE>

int glutGet(GLenum state);
</PRE>

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

<DL COMPACT>
<DT><I>state</I><DD>
Name of state to retrieve. 
<DT><B>GLUT_WINDOW_X </B>

<DD>
X location in pixels (relative to the screen origin) of the current
window. 
<DT><B>GLUT_WINDOW_Y </B>

<DD>
Y location in pixels (relative to the screen origin) of the current
window. 
<DT><B>GLUT_WINDOW_WIDTH </B>

<DD>
Width in pixels of the current window. 
<DT><B>GLUT_WINDOW_HEIGHT </B>

<DD>
Height in pixels of the current window. 
<DT><B>GLUT_WINDOW_BUFFER_SIZE </B>

<DD>
Total number of bits for current layer of current window's color buffer. For an
RGBA window, this is the sum of GLUT_WINDOW_RED_SIZE,
GLUT_WINDOW_GREEN_SIZE, GLUT_WINDOW_BLUE_SIZE, and
GLUT_WINDOW_ALPHA_SIZE. For color index windows, this is
the size of the color indexes. 
<DT><B>GLUT_WINDOW_STENCIL_SIZE </B>

<DD>
Number of bits in the current layer of current window's stencil buffer. 
<DT><B>GLUT_WINDOW_DEPTH_SIZE </B>

<DD>
Number of bits in the current layer of current window's depth buffer. 
<DT><B>GLUT_WINDOW_RED_SIZE </B>

<DD>
Number of bits of red stored the current layer of current window's color buffer.
Zero if the current layer of the current window is color index. 
<DT><B>GLUT_WINDOW_GREEN_SIZE </B>

<DD>
Number of bits of green stored the current layer of current window's color buffer.
Zero if the current layer of the current window is color index. 
<DT><B>GLUT_WINDOW_BLUE_SIZE </B>

<DD>
Number of bits of blue stored the current layer of current window's color buffer.
Zero if the current layer of the current window is color index. 
<DT><B>GLUT_WINDOW_ALPHA_SIZE </B>

<DD>
Number of bits of alpha stored the current layer of current window's color buffer.
Zero if the current layer of the current window is color index. 
<DT><B>GLUT_WINDOW_ACCUM_RED_SIZE </B>

<DD>
Number of bits of red stored in the current layer of current window's accumulation
buffer. Zero if the current layer of the current window is color index. 
<DT><B>GLUT_WINDOW_ACCUM_GREEN_SIZE </B>

<DD>
Number of bits of green stored in the current layer of current window's
accumulation buffer. Zero if the current layer of the current window is color index. 
<DT><B>GLUT_WINDOW_ACCUM_BLUE_SIZE </B>

<DD>
Number of bits of blue stored in the current layer of current window's
accumulation buffer. Zero if the current layer of the current window is color index. 
<DT><B>GLUT_WINDOW_ACCUM_ALPHA_SIZE </B>

<DD>
Number of bits of alpha stored in the current layer of current window's
accumulation buffer. Zero if the current layer of the current window is color index. 
<DT><B>GLUT_WINDOW_DOUBLEBUFFER </B>

<DD>
One if the current layer of the current window is double buffered, zero otherwise. 
<DT><B>GLUT_WINDOW_RGBA </B>

<DD>
One if the current layer of the current window is RGBA mode, zero otherwise (i.e.,
color index). 
<DT><B>GLUT_WINDOW_PARENT </B>

<DD>
The window number of the current window's parent; zero if the
window is a top-level window. 
<DT><B>GLUT_WINDOW_NUM_CHILDREN </B>

<DD>
The number of subwindows the current window has (not counting
children of children). 
<DT><B>GLUT_WINDOW_COLORMAP_SIZE </B>

<DD>
Size of current layer of current window's color index colormap; zero for RGBA
color model layers. 
<DT><B>GLUT_WINDOW_NUM_SAMPLES </B>

<DD>
Number of samples for multisampling for the current layer of the current window. 
<DT><B>GLUT_WINDOW_STEREO </B>

<DD>
One if the current layer of the current window is stereo, zero otherwise. 
<DT><B>GLUT_WINDOW_CURSOR </B>

<DD>
Current cursor for the current window. 
<DT><B>GLUT_SCREEN_WIDTH </B>

<DD>
Width of the screen in pixels. Zero indicates the width is unknown
or not available. 
<DT><B>GLUT_SCREEN_HEIGHT </B>

<DD>
Height of the screen in pixels. Zero indicates the height is
unknown or not available. 
<DT><B>GLUT_SCREEN_WIDTH_MM </B>

<DD>
Width of the screen in millimeters. Zero indicates the width is
unknown or not available. 
<DT><B>GLUT_SCREEN_HEIGHT_MM </B>

<DD>
Height of the screen in millimeters. Zero indicates the height is
unknown or not available. 
<DT><B>GLUT_MENU_NUM_ITEMS </B>

<DD>
Number of menu items in the current menu. 
<DT><B>GLUT_DISPLAY_MODE_POSSIBLE </B>

<DD>
Whether the current display mode is supported or not. 
<DT><B>GLUT_INIT_DISPLAY_MODE </B>

<DD>
The initial display mode bit mask. 
<DT><B>GLUT_INIT_WINDOW_X </B>

<DD>
The X value of the initial window position. 
<DT><B>GLUT_INIT_WINDOW_Y </B>

<DD>
The Y value of the initial window position. 
<DT><B>GLUT_INIT_WINDOW_WIDTH </B>

<DD>
The width value of the initial window size. 
<DT><B>GLUT_INIT_WINDOW_HEIGHT </B>

<DD>
The height value of the initial window size. 
<DT><B>GLUT_ELAPSED_TIME </B>

<DD>
Number of milliseconds since glutInit called (or first call to
glutGet(GLUT_ELAPSED_TIME)). 
<DT><B>GLUT_WINDOW_FORMAT_ID</B>

<DD>
The window system dependent format ID for the current layer of the
current window.  On X11 GLUT implementations, this is the X visual ID.
On Win32 GLUT implementations, this is the Win32 Pixel Format
Descriptor number.  This value is returned for debugging, benchmarking,
and testing ease.
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>

glutGet retrieves simple GLUT state represented by integers. The
state parameter determines what type of state to return.  Where appropriate, window
capability state is returned for the layer in use. GLUT state names
beginning with GLUT_WINDOW_ return state for the current window.
GLUT state names beginning with GLUT_MENU_ return state for the
current menu. Other GLUT state names return global state. Requesting
state for an invalid GLUT state name returns negative one. 
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>

glutDeviceGet, glutLayerGet, glutGetColor, glutGetWindow, glutGetMenu, glutGetModifiers, glutExtensionSupported
<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>