| Home
| Previous
| Next
| Up

MGL_modeFlags

Returns the mode flags for the specific graphics mode.

Declaration

ulong MGLAPI MGL_modeFlags(
int mode)

Prototype In

mgraph.h

Parameters

mode | graphics mode number to get flags for

Return Value

Flags for the specific graphics mode, or 0 for invalid mode.

Description

This function returns mode flags for the specified mode. The mode flags are available after calling MGL_init, and provides information about the hardware capabilities of the graphics mode, such as whether it supports 2D or 3D acceleration, video acceleration, refresh rate control and hardware stereo support. You can use these flags to make choices about the graphics mode to use for your application prior to initialising a specific graphics mode.

Specific mode flags are enumerated in MGL_modeFlagsType.

Note: If the hardware has not been detected when this call is made, the MGL will automatically detect the installed hardware the first time this function is called.

See Also

MGL_init, MGL_availablePages, MGL_modeResolution, MGL_findMode, MGL_addCustomMode, MGL_createDisplayDC

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