Supported Browsers Home   
GM_setEventFunc Previous   
GM_setGameLogicFunc Next   
External Functions Up   

GM_setExitFunc

Sets the exit callback function

Declaration

void MGLAPI GM_setExitFunc(
    GM_exitFunc func)
typedef void (*GM_exitFunc)(void)

Prototype In

gm/gm.h

Parameters

func

Exit callback function to register

 

Description

This function sets the exit callback function for your Game Framework game and is called by the Game Framework main loop just before calling MGL_exit to shut down the MGL and return to windowed mode before returning to your code. If you have any code that must be called before exiting from fullscreen mode, you should register it with this function.

Note:    This function will always be called after the mode switch has occurred and the system is in the new graphics mode.

See Also

GM_init, GM_mainLoop

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