GM_modeInfo

Declaration

typedef struct {
    int             xRes;
    int             yRes;
    int             bitsPerPixel;
    int             mode;
    int             pages;
    ulong           flags;
    char            driverName[60];
    GM_stretchType  stretch;
    GM_stretchType  windowedStretch;
    } GM_modeInfo

Prototype In

gm\gm.h

Description

The structure maintains information about the graphics modes that are supported by the game framework and is passed to GM_setMode to specify the mode to be initialized. Note that the xRes and yRes values are the logical resolution for the mode which may be different to the physical resolution, since the Game Framework also enumerates pseudo modes that use stretching. Hence even if the hardware does not have native support for a 320x240 mode, it may appear in the list using 320x480 as the real mode and a stretch factor of 1x2 or using 640x480 as the real mode and a stretch factor of 2x2.

If you wish to set a windowed mode directly set the mode parameter to grWINDOWED and the mode will start as a windowed mode.

Members

xRes

Logical X resolution for mode (not physical!)

yRes

Logical Y resolution for mode (not physical!)

bitsPerPixel

Color depth for mode. Note 16bpp includes 15bpp (5:5:5)

mode

Fullscreen MGL mode number (-1 means windowed mode)

pages

Number of hardware display pages for mode

flags

Mode flags for the mode

driverName

Name of driver that will be used in fullscreen modes

stretch

Stretch factor for the mode

windowedStretch

Stretch factor to use in windowed modes

 

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