GM_setPreModeSwitchFunc

Sets the pre-mode switch callback function

Declaration

void MGLAPI GM_setPreModeSwitchFunc(
GM_preModeSwitchFunc func)
typedef ibool (*GM_preModeSwitchFunc)(
GM_modeInfo *mode,
ibool windowed)

Prototype In

gm/gm.h

Parameters

func | Pre-mode switch callback function to register

Description

This function sets the pre-mode switch callback function for your Game Framework game and is called by the Game Framework when automatically switching on the fly between windowed and fullscreen modes. If you have registered a mode switch function with GM_setModeSwitchFunc, your pre-mode switch function will be called before the existing mode is destroyed, giving your code a change to destroy any internal data structures that might need to be cleaned up before the mode is destroyed and the new one created.

See Also

GM_init, GM_setMode, GM_setModeSwitchFunc

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