glutGet(3GLUT) GLUT glutGet(3GLUT)
NAME
glutGet - retrieves simple GLUT state represented by integers.
SYNTAX
int glutGet(GLenum state);
ARGUMENTS
state Name of state to retrieve.
GLUTWINDOWX
X location in pixels (relative to the screen origin) of the
current window.
GLUTWINDOWY
Y location in pixels (relative to the screen origin) of the
current window.
GLUTWINDOWIDTH
Width in pixels of the current window.
GLUTWINDOWHEIGHT
Height in pixels of the current window.
GLUTWINDOWBUFERSIZE
Total number of bits for current layer of current window's
color buffer. For an RGBA window, this is the sum of GLUTWIN-
DOWREDSIZE, GLUTWINDOWGRENSIZE, GLUTWINDOWBLUESIZE,
and GLUTWINDOWALPHASIZE. For color index windows, this is
the size of the color indexes.
GLUTWINDOWSTENCILSIZE
Number of bits in the current layer of current window's stencil
buffer.
GLUTWINDOWDEPTHSIZE
Number of bits in the current layer of current window's depth
buffer.
GLUTWINDOWREDSIZE
Number of bits of red stored the current layer of current win-
dow's color buffer. Zero if the current layer of the current
window is color index.
GLUTWINDOWGRENSIZE
Number of bits of green stored the current layer of current
window's color buffer. Zero if the current layer of the cur-
rent window is color index.
GLUTWINDOWBLUESIZE
Number of bits of blue stored the current layer of current win-
dow's color buffer. Zero if the current layer of the current
window is color index.
GLUTWINDOWALPHASIZE
Number of bits of alpha stored the current layer of current
window's color buffer. Zero if the current layer of the cur-
rent window is color index.
GLUTWINDOWACUMREDSIZE
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.
GLUTWINDOWACUMGRENSIZE
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.
GLUTWINDOWACUMBLUESIZE
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.
GLUTWINDOWACUMALPHASIZE
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.
GLUTWINDOWDOUBLEBUFER
One if the current layer of the current window is double
buffered, zero otherwise.
GLUTWINDOWRGBA
One if the current layer of the current window is RGBA mode,
zero otherwise (i.e., color index).
GLUTWINDOWPARENT
The window number of the current window's parent; zero if the
window is a top-level window.
GLUTWINDOWNUMCHILDREN
The number of subwindows the current window has (not counting
children of children).
GLUTWINDOWCOLORMAPSIZE
Size of current layer of current window's color index colormap;
zero for RGBA color model layers.
GLUTWINDOWNUMSAMPLES
Number of samples for multisampling for the current layer of
the current window.
GLUTWINDOWSTEREO
One if the current layer of the current window is stereo, zero
otherwise.
GLUTWINDOWCURSOR
Current cursor for the current window.
GLUTSCRENWIDTH
Width of the screen in pixels. Zero indicates the width is
unknown or not available.
GLUTSCRENHEIGHT
Height of the screen in pixels. Zero indicates the height is
unknown or not available.
GLUTSCRENWIDTHM
Width of the screen in millimeters. Zero indicates the width is
unknown or not available.
GLUTSCRENHEIGHTM
Height of the screen in millimeters. Zero indicates the height
is unknown or not available.
GLUTMENUNUMITEMS
Number of menu items in the current menu.
GLUTDISPLAYMODEPOSIBLE
Whether the current display mode is supported or not.
GLUTINITDISPLAYMODE
The initial display mode bit mask.
GLUTINITWINDOWX
The X value of the initial window position.
GLUTINITWINDOWY
The Y value of the initial window position.
GLUTINITWINDOWIDTH
The width value of the initial window size.
GLUTINITWINDOWHEIGHT
The height value of the initial window size.
GLUTELAPSEDTIME
Number of milliseconds since glutInit called (or first call to
glutGet(GLUTELAPSEDTIME)).
GLUTWINDOWFORMATID
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.
DESCRIPTION
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 GLUTWINDOW return state for the current window.
GLUT state names beginning with GLUTMENU return state for the current
menu. Other GLUT state names return global state. Requesting state for
an invalid GLUT state name returns negative one.
SEE ALSO
glutDeviceGet, glutLayerGet, glutGetColor, glutGetWindow, glutGetMenu,
glutGetModifiers, glutExtensionSupported
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutGet(3GLUT)
|