| Home
| Previous
| Next
| Up

MGLVisual

Declaration

typedef struct {
ibool rgb_flag;
ibool alpha_flag;
ibool db_flag;
int depth_size;
int stencil_size;
int accum_size;
ibool stereo_flag;
} MGLVisual

Prototype In

mgraph.h

Description

Structure representing the information passed to the MGL's OpenGL binding functions to both choose an appropriate visual that is supported by the OpenGL implementation and to pass in the information for the visual when a rendering context is created. Application code will fill in the structure and call MGL_glChooseVisual to find out a valid set of visual information that is close to what they requested, then call MGL_glSetVisual to make that the current visual for a specific MGL device context. The the next call to MGL_glCreateContext will use the visual information previously requested with the call to MGL_glSetVisual.

Members

rgb_flag | True for an RGB mode, false for color index modes
alpha_flag | True for alpha buffers (8-bits deep)
db_flag | True for double buffered, false for single buffered
depth_size | Size of depth buffer in bits
stencil_size | Size of stencil buffer in bits
accum_size | Size of accumulation buffer in bits
stereo_flag | True for a stereo display false

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