Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutinitdisplaymode(3glut) [osx man page]

glutInitDisplayMode(3GLUT)					       GLUT						glutInitDisplayMode(3GLUT)

NAME
glutInitDisplayMode - sets the initial display mode. SYNTAX
#include <GLUT/glut.h> void glutInitDisplayMode(unsigned int mode); ARGUMENTS
mode Display mode, normally the bitwise OR-ing of GLUT display mode bit masks. See values below: GLUT_RGBA Bit mask to select an RGBA mode window. This is the default if neither GLUT_RGBA nor GLUT_INDEX are specified. GLUT_RGB An alias for GLUT_RGBA. GLUT_INDEX Bit mask to select a color index mode window. This overrides GLUT_RGBA if it is also specified. Note that color index modes are not supported on Mac OS X. GLUT_SINGLE Bit mask to select a single buffered window. This is the default if neither GLUT_DOUBLE or GLUT_SINGLE are specified. GLUT_DOUBLE Bit mask to select a double buffered window. This overrides GLUT_SINGLE if it is also specified. GLUT_ACCUM Bit mask to select a window with an accumulation buffer. GLUT_ALPHA Bit mask to select a window with an alpha component to the color buffer(s). GLUT_DEPTH Bit mask to select a window with a depth buffer. GLUT_STENCIL Bit mask to select a window with a stencil buffer. GLUT_MULTISAMPLE Bit mask to select a window with multisampling support. If multisampling is not available, a non-multisampling window will automat- ically be chosen. Note: both the OpenGL client-side and server-side implementations must support the GLX_SAMPLE_SGIS extension for multisampling to be available. GLUT_STEREO Bit mask to select a stereo window. GLUT_LUMINANCE 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 glutGet(GLUT_WINDOW_COLORMAP_SIZE)-1 and looked up in a per-window color map to determine the color of pix- els 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. DESCRIPTION
The initial display mode is used when creating top-level windows, subwindows, and overlays to determine the OpenGL display mode for the to- be-created window or overlay. Note that GLUT_RGBA selects the RGBA color model, but it does not request any bits of alpha (sometimes called an alpha buffer or destina- tion alpha) be allocated. To request alpha, specify GLUT_ALPHA. The same applies to GLUT_LUMINANCE. The glutInitDisplayString routine provides a more powerful way to select frame buffer capabilities for GLUT windows. GLUT_LUMINANCE IMPLEMENTATION NOTES GLUT_LUMINANCE is not supported on most OpenGL platforms. SEE ALSO
glutInit, glutCreateWindow, glutInitDisplayString AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutInitDisplayMode(3GLUT)

Check Out this Related Man Page

glutGet(3GLUT)							       GLUT							    glutGet(3GLUT)

NAME
glutGet - retrieves simple GLUT state represented by integers. SYNTAX
#include <GLUT/glut.h> int glutGet(GLenum state); ARGUMENTS
state Name of state to retrieve. GLUT_WINDOW_X X location in pixels (relative to the screen origin) of the current window. GLUT_WINDOW_Y Y location in pixels (relative to the screen origin) of the current window. GLUT_WINDOW_WIDTH Width in pixels of the current window. GLUT_WINDOW_HEIGHT Height in pixels of the current window. GLUT_WINDOW_BUFFER_SIZE Total number of bits for current layer of current window's color buffer. For an RGBA window, this is the sum of GLUT_WIN- DOW_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. GLUT_WINDOW_STENCIL_SIZE Number of bits in the current layer of current window's stencil buffer. GLUT_WINDOW_DEPTH_SIZE Number of bits in the current layer of current window's depth buffer. GLUT_WINDOW_RED_SIZE 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. GLUT_WINDOW_GREEN_SIZE 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. GLUT_WINDOW_BLUE_SIZE 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. GLUT_WINDOW_ALPHA_SIZE 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. GLUT_WINDOW_ACCUM_RED_SIZE 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. GLUT_WINDOW_ACCUM_GREEN_SIZE Number of bits of green stored in the current layer of current window's accumulation buffer. Zero if the current layer of the cur- rent window is color index. GLUT_WINDOW_ACCUM_BLUE_SIZE Number of bits of blue stored in the current layer of current window's accumulation buffer. Zero if the current layer of the cur- rent window is color index. GLUT_WINDOW_ACCUM_ALPHA_SIZE Number of bits of alpha stored in the current layer of current window's accumulation buffer. Zero if the current layer of the cur- rent window is color index. GLUT_WINDOW_DOUBLEBUFFER One if the current layer of the current window is double buffered, zero otherwise. GLUT_WINDOW_RGBA One if the current layer of the current window is RGBA mode, zero otherwise (i.e., color index). GLUT_WINDOW_PARENT The window number of the current window's parent; zero if the window is a top-level window. GLUT_WINDOW_NUM_CHILDREN The number of subwindows the current window has (not counting children of children). GLUT_WINDOW_COLORMAP_SIZE Size of current layer of current window's color index colormap; zero for RGBA color model layers. GLUT_WINDOW_NUM_SAMPLES Number of samples for multisampling for the current layer of the current window. GLUT_WINDOW_STEREO One if the current layer of the current window is stereo, zero otherwise. GLUT_WINDOW_CURSOR Current cursor for the current window. GLUT_SCREEN_WIDTH Width of the screen in pixels. Zero indicates the width is unknown or not available. GLUT_SCREEN_HEIGHT Height of the screen in pixels. Zero indicates the height is unknown or not available. GLUT_SCREEN_WIDTH_MM Width of the screen in millimeters. Zero indicates the width is unknown or not available. GLUT_SCREEN_HEIGHT_MM Height of the screen in millimeters. Zero indicates the height is unknown or not available. GLUT_MENU_NUM_ITEMS Number of menu items in the current menu. GLUT_DISPLAY_MODE_POSSIBLE Whether the current display mode is supported or not. GLUT_INIT_DISPLAY_MODE The initial display mode bit mask. GLUT_INIT_WINDOW_X The X value of the initial window position. GLUT_INIT_WINDOW_Y The Y value of the initial window position. GLUT_INIT_WINDOW_WIDTH The width value of the initial window size. GLUT_INIT_WINDOW_HEIGHT The height value of the initial window size. GLUT_ELAPSED_TIME Number of milliseconds since glutInit called (or first call to glutGet(GLUT_ELAPSED_TIME)). GLUT_WINDOW_FORMAT_ID The window system dependent format ID for the current layer of the current window. On X11 GLUT implementations, this is the X vis- ual 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 appropri- ate, 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. Request- ing 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)
Man Page