Back to class index
MainClass[Class Summary]
graphics
input
WindowAboutToMinimize
WindowAboutToMaximize
WindowAboutToClose
AboutToQuit
ctor
~dtor[virtual]
Main(argc,argn,argv)[virtual]
Render()[virtual]
QuitApplication()
IsQuitting()[const]

MainClass::Main

Syntax

int MainClass::Main(int argc, const char **argn, const char **argv);

Called when a new instance of the application starts executing.

Reimplement this function to perform any application-specific data loading and initialization that is necessary. Do not enter a modal loop in this function, but return from it after initializing all application data. (The application will not quit after exiting this function)

Note
WARNING: When deriving this function in your main class, pay special attention to getting the function signature right, particularly the constness. This is not a 'standard' C main() function.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index