GMDC

Declaration

typedef struct {
MGLDC *dc;
MGLDC *dispdc;
MGLDC *backdc;
int numModes;
int numFullscreenModes;
ulong modeFlags;
GM_modeInfo modeList[GM_MAXMODE+1];
#if defined(__WINDOWS__) && !defined(__CONSOLE__)
MGL_HWND mainWindow;
#endif
} GMDC

Prototype In

gm\gm.h

Description

Main structure for maintaining the state information for the Game Framework. The application program always does all drawing and rendering to the GMDC dc member, which will draw directly to the framebuffer or to a system memory buffer depending on the hardware and the initialization information. The modeFlags field contains the original mode flags information passed to GM_init, which defines which color depths your game will support. The modeList contains a complete list of all the available graphics modes supported by the Game Framework, including psuedo modes that are modes that include auto-stretching.

The dispdc and backdc field are primarily for internal use by the Game Framework, and you should not use those fields unless you are clear what they are used for.

Members

dc | DC for drawing
dispdc | Main display DC
backdc | Back buffer if necessary (could be system or video memory)
numModes | Number of modes in the mode list
numFullscreenModes | Number of fullscreen capable modes in the mode list
modeFlags | Mode flags for current graphics mode
modeList | List of all available modes supported by the Game Framework
mainWindow | Handle to main window (Windows only)

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