The fields of the Glut class are listed below. For a complete list of Glut class members, see the Glut Members topic.
![]() ![]() | FreeGLUT API marker. |
![]() ![]() | FreeGLUT API version marker. |
![]() ![]() | Bit mask to select a window with an accumulation buffer. |
![]() ![]() | Continue execution on window close button click. |
![]() ![]() | Close window on window close button click. |
![]() ![]() | Return from main loop on window close button click. |
![]() ![]() | Gets current action for window-close. |
![]() ![]() | Set if the Alt modifier is active. |
![]() ![]() | Set if the Ctrl modifier is active. |
![]() ![]() | Set if the Shift modifier or Caps Lock is active. |
![]() ![]() | Direct/Indirect rendering context options (has meaning only in Unix/X11) |
![]() ![]() | Bit mask to select a window with an alpha component to the color buffer(s). |
![]() ![]() | GLUT API revision. |
![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() | A fixed width font with every character fitting in an 8 by 13 pixel rectangle. |
![]() ![]() | A fixed width font with every character fitting in an 9 by 15 pixel rectangle. |
![]() ![]() | A 10-point proportional spaced Helvetica font. |
![]() ![]() | A 12-point proportional spaced Helvetica font. |
![]() ![]() | A 18-point proportional spaced Helvetica font. |
![]() ![]() | A 10-point proportional spaced Times Roman font. |
![]() ![]() | A 24-point proportional spaced Times Roman font. |
![]() ![]() | Blue color component. |
![]() ![]() | Create a new context when user opens a new window. |
![]() ![]() | Arrow pointing to bottom-left corner. |
![]() ![]() | Arrow pointing to bottom-right corner. |
![]() ![]() | Arrow pointing to bottom side. |
![]() ![]() | Simple cross-hair. |
![]() ![]() | Arrows rotating in a circle. |
![]() ![]() | Skull and cross bones. |
![]() ![]() | Full-screen cross-hair cursor (if possible, otherwise GLUT_CURSOR_CROSSHAIR. |
![]() ![]() | Question mark. |
![]() ![]() | Pointing hand. |
![]() ![]() | Use parent's cursor. |
![]() ![]() | Arrow pointing up and to the left. |
![]() ![]() | Bi-directional pointing left and right. |
![]() ![]() | Arrow pointing to left side. |
![]() ![]() | Invisible cursor. |
![]() ![]() | Arrow pointing up and to the right. |
![]() ![]() | Arrow pointing to right side. |
![]() ![]() | Spray can. |
![]() ![]() | Insertion point cursor for text. |
![]() ![]() | Arrow pointing to top-left corner. |
![]() ![]() | Arrow pointing to top-right corner. |
![]() ![]() | Arrow pointing to top side. |
![]() ![]() | Bi-directional pointing up and down. |
![]() ![]() | Wrist watch. |
![]() ![]() | Bit mask to select a window with a depth buffer. |
![]() ![]() | Returns true if the current window's auto repeated keys are ignored. This state is controlled by glutIgnoreKeyRepeat. |
![]() ![]() | The window system's global key repeat state. Returns either GLUT_KEY_REPEAT_OFF, GLUT_KEY_REPEAT_ON, or GLUT_KEY_REPEAT_DEFAULT. This will not necessarily return the value last passed to glutSetKeyRepeat. |
![]() ![]() | |
![]() ![]() | Whether the current display mode is supported or not. |
![]() ![]() | Bit mask to select a double buffered window. This overrides GLUT_SINGLE if it is also specified. |
![]() ![]() | Mouse button down. |
![]() ![]() | Number of milliseconds since glutInit called (or first call to glutGet(GLUT_ELAPSED_TIME) ). |
![]() ![]() | Mouse pointer has entered the window. |
![]() ![]() | Direct/Indirect rendering context options (has meaning only in Unix/X11) |
![]() ![]() | Direct/Indirect rendering context options (has meaning only in Unix/X11) |
![]() ![]() | The window is shown but no part of the window is visible. |
![]() ![]() | No pixels belonging to the window are covered by other windows. |
![]() ![]() | Non-zero if GLUT's game mode is active; zero if not active. Game mode is not active initially. Game mode becomes active when glutEnterGameMode is called. Game mode becomes inactive when glutLeaveGameMode is called. |
![]() ![]() | Non-zero if entering game mode actually changed the display settings. If the game mode string is not possible or the display mode could not be changed for any other reason, zero is returned. |
![]() ![]() | Height in pixels of the screen when game mode is activated. |
![]() ![]() | Pixel depth of the screen when game mode is activiated. |
![]() ![]() | Non-zero if the game mode string last specified to glutGameModeString is a possible game mode configuration; zero otherwise. Being "possible" does not guarantee that if game mode is entered with glutEnterGameMode that the display settings will actually changed. GLUT_GAME_MODE_DISPLAY_CHANGED should be called once game mode is entered to determine if the display mode is actually changed. |
![]() ![]() | Screen refresh rate in cyles per second (hertz) when game mode is activated. Zero is returned if the refresh rate is unknown or cannot be queried. |
![]() ![]() | Width in pixels of the screen when game mode is activated. |
![]() ![]() | Green color component. |
![]() ![]() | Non-zero if a dial and button box is available; zero if not available. |
![]() ![]() | Non-zero if a joystick is available; zero if not available. |
![]() ![]() | Non-zero if a keyboard is available; zero if not available. For most GLUT implementations, a keyboard can be assumed. |
![]() ![]() | Non-zero if a mouse is available; zero if not available. For most GLUT implementations, a keyboard can be assumed. |
![]() ![]() | If the current window has an overlay established. |
![]() ![]() | Non-zero if a Spaceball is available; zero if not available. |
![]() ![]() | Non-zero if a tablet is available; zero if not available. |
![]() ![]() | The window is not shown or iconified. |
![]() ![]() | Bit mask to select a color index mode window. This overrides GLUT_RGB or GLUT_RGBA if they are also specified. |
![]() ![]() | The initial display mode bit mask. |
![]() ![]() | Unknown. |
![]() ![]() | The height value of the initial window size. |
![]() ![]() | The width value of the initial window size. |
![]() ![]() | The X value of the initial window position. |
![]() ![]() | The Y value of the initial window position. |
![]() ![]() | Number of axes supported by the joystick. If no joystick is supposrted, zero is returned. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Number of buttons supported by the joystick. If no joystick is supported, zero is returned. |
![]() ![]() | Returns the current window's joystick poll rate as set by glutJoystickFunc. If no joystick is supported, the poll rate will always be zero. The joystick poll rate also returns zero if the poll rate last specified to glutJoystickFunc is negative or a NULL callback was registered. |
![]() ![]() | Down directional key. |
![]() ![]() | End directional key. |
![]() ![]() | F1 function key. |
![]() ![]() | F10 function key. |
![]() ![]() | F11 function key. |
![]() ![]() | F12 function key. |
![]() ![]() | F2 function key. |
![]() ![]() | F3 function key. |
![]() ![]() | F4 function key. |
![]() ![]() | F5 function key. |
![]() ![]() | F6 function key. |
![]() ![]() | F7 function key. |
![]() ![]() | F8 function key. |
![]() ![]() | F9 function key. |
![]() ![]() | Home directional key. |
![]() ![]() | Insert directional key. |
![]() ![]() | Left directional key. |
![]() ![]() | Page Down directional key. |
![]() ![]() | Page Up directional key. |
![]() ![]() | Reset the key repeat mode for the window system to its default state. |
![]() ![]() | Disable key repeat for the window system on a global basis. |
![]() ![]() | Enable key repeat for the window system on a global basis. |
![]() ![]() | Right directional key. |
![]() ![]() | Up directional key. |
![]() ![]() | Either GLUT_NORMAL or GLUT_OVERLAY depending on whether the normal plane or overlay is the layer in use. |
![]() ![]() | Mouse pointer has left the window. |
![]() ![]() | Left mouse button. |
![]() ![]() | Bit mask to select a window with a "luminance" color model. This model provides the functionality of OpenGL's RGBA color model, but the green and blue components are not maintained in the frame buffer. Instead each pixel's red component is converted to an index between zero and Glut.glutGet(Glut.GLUT_WINDOW_COLORMAP_SIZE) - 1 and looked up in a per-window color map to determine the color of pixels within the window. The initial colormap of GLUT_LUMINANCE windows is initialized to be a linear gray ramp, but can be modified with GLUT's colormap routines. |
![]() ![]() | Pop-up menus are in use by the user. |
![]() ![]() | Pop-up menus are not in use by the user. |
![]() ![]() | Number of menu items in the current menu. |
![]() ![]() | Middle mouse button. |
![]() ![]() | Bit mask to select a window with multisampling support. If multisampling is not available, a non-multisampling window will automatically be chosen. Note: both the OpenGL client-side and server-side implementations must support the GLX_SAMPLE_SGIS extension for multisampling to be available. |
![]() ![]() | The normal plane. |
![]() ![]() | True if the normal plane of the current window has damaged (by window system activity) since the last display callback was triggered. Calling glutPostRedisplay will not set this true. |
![]() ![]() | The window is not visible. No part of the window is visible. All further rendering to the window is discarded until the window's visibility changes. |
![]() ![]() | Number of buttons supported by the dial and button box device. If no dials and button box device is supported, zero is returned. |
![]() ![]() | Number of dials supported by the dial and button box device. If no dials and button box device is supported, zero is returned. |
![]() ![]() | Number of buttons supported by the mouse. If no mouse is supported, zero is returned. |
![]() ![]() | Number of buttons supported by the Spaceball. If no Spaceball is supported, zero is returned. |
![]() ![]() | Number of buttons supported by the tablet. If no tablet is supported, zero is returned. |
![]() ![]() | The overlay plane. |
![]() ![]() | True if the overlay plane of the current window has damaged (by window system activity) since the last display callback was triggered. Calling glutPostRedisplay or glutPostOverlayRedisplay will not set this true. Negative one is returned if no overlay is in use. |
![]() ![]() | Whether an overlay could be established for the current window given the current initial display mode. If false, glutEstablishOverlay will fail with a fatal error if called. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Some but not all pixels belonging to the window are covered by other windows. |
![]() ![]() | Red color component. |
![]() ![]() | Gets GLUT's rendering context. |
![]() ![]() | An alias for GLUT_RGBA. |
![]() ![]() | Bit mask to select an RGBA mode window. This is the default if neither GLUT_RGB, GLUT_RGBA, nor GLUT_INDEX are specified. |
![]() ![]() | Right mouse button. |
![]() ![]() | Height of the screen in pixels. Zero indicates the height is unknown or not available. |
![]() ![]() | Height of the screen in millimeters. Zero indicates the height is unknown or not available. |
![]() ![]() | Width of the screen in pixels. Zero indicates the width is unknown or not available. |
![]() ![]() | Width of the screen in millimeters. Zero indicates the width is unknown or not available. |
![]() ![]() | Bit mask to select a single buffered window. This is the default if neither GLUT_DOUBLE or GLUT_SINGLE are specified. |
![]() ![]() | Bit mask to select a window with a stencil buffer. |
![]() ![]() | Bit mask to select a stereo window. |
![]() ![]() | A mono-spaced spaced Roman Simplex font (same characters as GLUT_STROKE_ROMAN) for ASCII characters 32 through 127. The maximum top character in the font is 119.05 units; the bottom descends 33.33 units. Each character is 104.76 units wide. |
![]() ![]() | A proportionally spaced Roman Simplex font for ASCII characters 32 through 127. The maximum top character in the font is 119.05 units; the bottom descends 33.33 units. |
![]() ![]() | The transparent color index of the overlay of the current window; negative one is returned if no overlay is in use. |
![]() ![]() | Direct/Indirect rendering context options (has meaning only in Unix/X11) |
![]() ![]() | Mouse button up. |
![]() ![]() | Use current context when user opens a new window. |
![]() ![]() | Gets GLUT version. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Non-zero if video resizing is supported by the underlying system; zero if not supported. If this is zero, the other video resize GLUT calls do nothing when called. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | Unknown. Unable to locate definitive documentation on this constant. |
![]() ![]() | The window is visible. Does not distinguish a window being totally versus partially visible. |
![]() ![]() | Number of bits of alpha stored in the current window's accumulation buffer. Zero if the window is color index. |
![]() ![]() | Number of bits of blue stored in the current window's accumulation buffer. Zero if the window is color index. |
![]() ![]() | Number of bits of green stored in the current window's accumulation buffer. Zero if the window is color index. |
![]() ![]() | Number of bits of red stored in the current window's accumulation buffer. Zero if the window is color index. |
![]() ![]() | Number of bits of alpha stored the current window's color buffer. Zero if the window is color index. |
![]() ![]() | Number of bits of blue stored the current window's color buffer. Zero if the window is color index. |
![]() ![]() | Gets the window border width. |
![]() ![]() | Total number of bits for 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. |
![]() ![]() | Size of current window's color index colormap; zero for RGBA color model windows. |
![]() ![]() | Current cursor for the current window. |
![]() ![]() | Number of bits in the current window's depth buffer. |
![]() ![]() | One if the current window is double buffered, zero otherwise. |
![]() ![]() | 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. |
![]() ![]() | Number of bits of green stored the current window's color buffer. Zero if the window is color index. |
![]() ![]() | Gets window header height. |
![]() ![]() | Height in pixels of the current window. |
![]() ![]() | The number of subwindows the current window has (not counting children of children). |
![]() ![]() | Number of samples for multisampling for the current window. |
![]() ![]() | The window number of the current window's parent; zero if the window is a top-level window. |
![]() ![]() | Number of bits of red stored the current window's color buffer. Zero if the window is color index. |
![]() ![]() | One if the current window is RGBA mode, zero otherwise (i.e., color index). |
![]() ![]() | Number of bits in the current window's stencil buffer. |
![]() ![]() | One if the current window is stereo, zero otherwise. |
![]() ![]() | Width in pixels of the current window. |
![]() ![]() | X location in pixels (relative to the screen origin) of the current window. |
![]() ![]() | Y location in pixels (relative to the screen origin) of the current window. |
![]() ![]() |
Glut Class | Tao.FreeGlut Namespace