<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>glutGet</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.07 Man Pages"/><link rel="up" href="reference-GLUT.xml" title="GLUT"/><link rel="previous" href="glutGameModeString.3GLUT.xml" title="glutGameModeString"/><link rel="next" href="glutGetColor.3GLUT.xml" title="glutGetColor"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">glutGet</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glutGameModeString.3GLUT.xml">Prev</a> </td><th width="60%" align="center">GLUT</th><td width="20%" align="right"> <a accesskey="n" href="glutGetColor.3GLUT.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glutGet.3GLUT"/><div class="titlepage"/><div class="refnamediv"><a name="glutGet.3GLUT-name"/><h2>Name</h2><p>glutGet &#8212; retrieves simple GLUT state represented by integers.</p></div><div class="refsynopsisdiv"><a name="glutGet.3GLUT-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>int <tt>glutGet</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLenum <i><tt>state</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glutGet.3GLUT-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glutGet</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>state</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glutGet.3GLUT-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>state</tt></i></span></dt><dd><p>
						Name of state to retrieve.
					</p><div class="variablelist"><dl><dt><span class="term"><tt>GLUT_WINDOW_X</tt></span></dt><dd>
									X location in pixels (relative to the screen origin) of the current window.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_Y</tt></span></dt><dd>
									Y location in pixels (relative to the screen origin) of the current window.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_WIDTH</tt></span></dt><dd>
									Width in pixels of the current window.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_HEIGHT</tt></span></dt><dd>
									Height in pixels of the current window.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_BUFFER_SIZE</tt></span></dt><dd>
									Total number of bits for current layer of current window's color buffer. For an RGBA window,
									this is the sum of <tt>GLUT_WINDOW_RED_SIZE</tt>,
									<tt>GLUT_WINDOW_GREEN_SIZE</tt>, <tt>GLUT_WINDOW_BLUE_SIZE</tt>, and
									<tt>GLUT_WINDOW_ALPHA_SIZE</tt>. For color index windows, this is the size of the
									color indexes.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_STENCIL_SIZE</tt></span></dt><dd>
									Number of bits in the current layer of current window's stencil buffer.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_DEPTH_SIZE</tt></span></dt><dd>
									Number of bits in the current layer of current window's depth buffer.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_RED_SIZE</tt></span></dt><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.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_GREEN_SIZE</tt></span></dt><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.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_BLUE_SIZE</tt></span></dt><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.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_ALPHA_SIZE</tt></span></dt><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.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_ACCUM_RED_SIZE</tt></span></dt><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.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_ACCUM_GREEN_SIZE</tt></span></dt><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.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_ACCUM_BLUE_SIZE</tt></span></dt><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.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_ACCUM_ALPHA_SIZE</tt></span></dt><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.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_DOUBLEBUFFER</tt></span></dt><dd>
									One if the current layer of the current window is double buffered, zero otherwise.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_RGBA</tt></span></dt><dd>
									One if the current layer of the current window is RGBA mode, zero otherwise (i.e., color index).
								</dd><dt><span class="term"><tt>GLUT_WINDOW_PARENT</tt></span></dt><dd>
									The window number of the current window's parent; zero if the window is a top-level window.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_NUM_CHILDREN</tt></span></dt><dd>
									The number of subwindows the current window has (not counting children of children).
								</dd><dt><span class="term"><tt>GLUT_WINDOW_COLORMAP_SIZE</tt></span></dt><dd>
									Size of current layer of current window's color index colormap; zero for RGBA color model
									layers.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_NUM_SAMPLES</tt></span></dt><dd>
									Number of samples for multisampling for the current layer of the current window.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_STEREO</tt></span></dt><dd>
									One if the current layer of the current window is stereo, zero otherwise.
								</dd><dt><span class="term"><tt>GLUT_WINDOW_CURSOR</tt></span></dt><dd>
									Current cursor for the current window.
								</dd><dt><span class="term"><tt>GLUT_SCREEN_WIDTH</tt></span></dt><dd>
									Width of the screen in pixels. Zero indicates the width is unknown or not available.
								</dd><dt><span class="term"><tt>GLUT_SCREEN_HEIGHT</tt></span></dt><dd>
									Height of the screen in pixels. Zero indicates the height is unknown or not available.
								</dd><dt><span class="term"><tt>GLUT_SCREEN_WIDTH_MM</tt></span></dt><dd>
									Width of the screen in millimeters. Zero indicates the width is unknown or not available.
								</dd><dt><span class="term"><tt>GLUT_SCREEN_HEIGHT_MM</tt></span></dt><dd>
									Height of the screen in millimeters. Zero indicates the height is unknown or not available.
								</dd><dt><span class="term"><tt>GLUT_MENU_NUM_ITEMS</tt></span></dt><dd>
									Number of menu items in the current menu.
								</dd><dt><span class="term"><tt>GLUT_DISPLAY_MODE_POSSIBLE</tt></span></dt><dd>
									Whether the current display mode is supported or not.
								</dd><dt><span class="term"><tt>GLUT_INIT_DISPLAY_MODE</tt></span></dt><dd>
									The initial display mode bit mask.
								</dd><dt><span class="term"><tt>GLUT_INIT_WINDOW_X</tt></span></dt><dd>
									The X value of the initial window position.
								</dd><dt><span class="term"><tt>GLUT_INIT_WINDOW_Y</tt></span></dt><dd>
									The Y value of the initial window position.
								</dd><dt><span class="term"><tt>GLUT_INIT_WINDOW_WIDTH</tt></span></dt><dd>
									The width value of the initial window size.
								</dd><dt><span class="term"><tt>GLUT_INIT_WINDOW_HEIGHT</tt></span></dt><dd>
									The height value of the initial window size.
								</dd><dt><span class="term"><tt>GLUT_ELAPSED_TIME</tt></span></dt><dd>
									Number of milliseconds since glutInit called (or first call to <tt>glutGet(GLUT_ELAPSED_TIME)</tt>).
								</dd><dt><span class="term"><tt>GLUT_WINDOW_FORMAT_ID</tt></span></dt><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.
								</dd></dl></div></dd></dl></div></div><div class="refsect1" lang="en"><a name="glutGet.3GLUT-description"/><h2>Description</h2><p>
			<tt>glutGet</tt> 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 <tt>GLUT_WINDOW_</tt> return state for the current window. GLUT state names beginning with
			<tt>GLUT_MENU_</tt> return state for the current menu. Other GLUT state names return global state.
			Requesting state for an invalid GLUT state name returns negative one.
		</p></div><div class="refsect1" lang="en"><a name="glutGet.3GLUT-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glutDeviceGet.3GLUT.xml">glutDeviceGet</a>, <a href="glutLayerGet.3GLUT.xml">glutLayerGet</a>, <a href="glutGetColor.3GLUT.xml">glutGetColor</a>, <a href="glutGetWindow.3GLUT.xml">glutGetWindow</a>, <a href="glutGetMenu.3GLUT.xml">glutGetMenu</a>, <a href="glutGetModifiers.3GLUT.xml">glutGetModifiers</a>, <a href="glutExtensionSupported.3GLUT.xml">glutExtensionSupported</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glutGameModeString.3GLUT.xml">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-GLUT.xml">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="glutGetColor.3GLUT.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glutGameModeString </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> glutGetColor</td></tr></table></div></body></html>