|
Graphics.UI.GLUT.State | Portability | portable | Stability | stable | Maintainer | sven.panne@aedion.de |
|
|
|
|
|
Description |
GLUT maintains a considerable amount of programmer visible state. Some (but
not all) of this state may be directly retrieved.
|
|
Synopsis |
|
|
|
|
State of all windows
|
|
|
(freeglut only) Contains the thickness of the sizing border around the
perimeter of a window that can be resized, in pixels.
|
|
|
(freeglut only) Contains the height of the header/caption area of a
window in pixels.
|
|
State of the current window
|
|
|
Contains True when the current layer of the current window is in RGBA
mode, False means color index mode.
|
|
|
Bit depth of a buffer
|
|
|
Contains the number of red, green, blue, and alpha bits in the color buffer
of the current window\'s current layer (0 in color index mode).
|
|
|
Contains the total number of bits in the color buffer of the /current
window's/ current layer. For an RGBA layer, this is the sum of the red,
green, blue, and alpha bits. For an color index layer, this is the number
of bits of the color indexes.
|
|
|
Contains True when the current layer of the current window is double
buffered, False otherwise.
|
|
|
Contains True when the current layer of the current window is stereo,
False otherwise.
|
|
|
Contains the number of red, green, blue, and alpha bits in the accumulation
buffer of the current window\'s current layer (0 in color index mode).
|
|
|
Contains the number of bits in the depth buffer of the current window\'s
current layer.
|
|
|
Contains the number of bits in the stencil buffer of the /current
window's/ current layer.
|
|
|
Number of samples for multisampling
|
|
|
Contains the number of samples for multisampling for the current window.
|
|
|
Contains 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.
|
|
GLUT state pertaining to the layers of the current window
|
|
|
Contains True if the given plane of the current window has been
damaged (by window system activity) since the last display callback was
triggered. Calling postRedisplay or
postOverlayRedisplay will not set this True.
|
|
Timing
|
|
|
Contains the number of milliseconds since
initialize was called.
|
|
Device information
|
|
If a device is not available, the following state variables contain
Nothing, otherwise they return Just the specific device information.
Only a screen is always assumed.
|
|
|
The size of the screen in pixels.
|
|
|
The size of the screen in millimeters.
|
|
|
Contains True if a keyboard is present, False otherwise.
|
|
|
Number of buttons of an input device
|
|
|
Contains Just the number of buttons of an attached mouse or Nothing if
there is none.
|
|
|
Contains Just the number of buttons of the attached Spaceball or Nothing
if there is none.
|
|
|
Number of dials of a dial and button box
|
|
|
Contains Just the number of dials and buttons of an attached dial &
button box or Nothing if there is none.
|
|
|
Contains Just the number of buttons of an attached tablet or Nothing if
there is none.
|
|
|
Number of axes of a joystick
|
|
|
The a rate at which a joystick is polled (in milliseconds)
|
|
|
Contains Just the number of buttons of an attached joystick, the number
of joystick axes, and the rate at which the joystick is polled. Contains
Nothing if there is no joystick attached.
|
|
GLUT information
|
|
|
Contains version of GLUT in the form of
flavour major.minor.patchlevel, where flavour is one of
GLUT, freeglut or OpenGLUT.
|
|
Produced by Haddock version 0.9 |