DemoGL::Reference::Functions::DEMOGL_AppEnd

DEMOGL_AppEnd

DEMOGL_AppEnd cleans up all internals of DemoGL after the DemoGL powered part of your application, which you started with DEMOGL_AppRun, returns to the caller, normally the WinMain() routine.

void
DEMOGL_AppEnd(void);
	
Parameters.

Return values.

Remarks.
When you call DEMOGL_AppRun to start your application, it won't return until it's finished or terminated by the user. When it returns to your application the run cycle of the application is over and the application should end itself. Before you can normally exit your application or clean up your own internal objects and data, you should call DEMOGL_AppEnd to let DemoGL clean up all its internal data, let it stop the music etc. After DEMOGL_AppEnd returns, you can safely clean up your application and exit, you don't have to free any DemoGL related data, unless otherwise stated by the documentation. When you want to restart your application, you should re-register all effects with DemoGL since DEMOGL_AppEnd has cleaned up all effect object references. You can better use the RESTART command of the _SYSTEM object in the script. See _SYSTEM script commands for more information about the RESTART command.

Example.

Requirements.
DemoGL v1.3 (build 0112 or higher)

See also.
DEMOGL_AppRun, _SYSTEM script commands

Last changed on 01-jun-2001

©1999-2001 Solutions Design