DemoGL::About::Support for different kind of applications

Support for different kind of applications.

DemoGL supports two kinds of applications: normal win32 applications and win32 screensavers. Win32 screensavers need a commandline interface to run as expected in windows. DemoGL handles this commandline interface by the API function DEMOGL_ParseScreenSaverCL.

Any application type has a WinMain() function as start function. This function will create effectobjects, register these with DemoGL, set additional DemoGL variables and will start the application by calling DEMOGL_AppRun. The parameters passed to DEMOGL_AppRun will tell DemoGL how to behave: as a normal win32 application or a win32 screensaver that should exit when the mouse moves or a key is pressed. The developer should use DEMOGL_ParseScreenSaverCL to feed the correct startup information to DEMOGL_AppRun when the application is a win32 screensaver.

When developing a win32 screensaver it's wise to develop the screensaver as a normal win32 application, since the application execution is only different from a win32 application in the abortion of the application on mousemovement or keypress and these events are handled by DemoGL anyway. When the application runs as expected, place a DEMOGL_ParseScreenSaverCL call in the WinMain() function of the application, pass the correct information to DEMOGL_AppRun and rename the .exe file to a .scr file and the screensaver is ready.

DemoGL supports preview, test and config runtypes for win32 screensavers. See for more information DEMOGL_AppRun in the DemoGL Reference manual.



Last changed on 11-mar-2001

©1999-2001 Solutions Design