| Home
| Previous
| Next
| Up

MGL_glContextFlagsType

Declaration

typedef enum {
MGL_GL_VISUAL = 0x8000,
MGL_GL_FORCEMEM = 0x4000,
MGL_GL_RGB = 0x0000,
MGL_GL_INDEX = 0x0001,
MGL_GL_SINGLE = 0x0000,
MGL_GL_DOUBLE = 0x0002,
MGL_GL_ACCUM = 0x0004,
MGL_GL_ALPHA = 0x0008,
MGL_GL_DEPTH = 0x0010,
MGL_GL_STENCIL = 0x0020,
MGL_GL_STEREO = 0x0040
} MGL_glContextFlagsType

Prototype In

mgraph.h

Description

MGL_glCreateContext flags to initialize the pixel format used by the OpenGL rendering context. If you pass in MGL_GL_VISUAL, the visual used will be the one currently selected by the previous call to MGL_glSetVisual, and provides the application programmer with complete control over the pixel formats used.

You can pass in a combination of any of the other flags (ie: MGL_GL_RGB | MGL_GL_DOUBLE | MGL_GL_DEPTH) to let the MGL know what you want and to have it automatically select an appropriate visual for you. This provides a quick and simple way to get application code up and running.

Members

MGL_GL_VISUAL | Use curently assigned visual from call to MGL_glSetVisual
MGL_GL_FORCEMEM | Force system memory back buffer for all rendering
MGL_GL_RGB | Select RGB rendering mode (/default/)
MGL_GL_INDEX | Select color index display mode
MGL_GL_SINGLE | Select single buffered display mode (/default/)
MGL_GL_DOUBLE | Select double buffered display mode
MGL_GL_ACCUM | Enable accumulation buffer (16 bits)
MGL_GL_ALPHA | Enable alpha buffer (8 bit)
MGL_GL_DEPTH | Enable depth buffer (16 bits)
MGL_GL_STENCIL | Enable stencil buffer (8 bits)
MGL_GL_STEREO | Enable stereo mode

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com