#include "Lgi.h"#include "GToken.h"Functions | |
| int | LgiMain (OsAppArguments &AppArgs) |
| The main entry point of a Lgi program. | |
| int LgiMain | ( | OsAppArguments & | AppArgs | ) |
The main entry point of a Lgi program.
To hide the differences between the different OS's standard entry points for programs the file LgiMain.cpp implements a simple platform specific entry point and then calls LgiMain() to pass execution onto your program.
A simple LgiMain() looks like this:
int LgiMain(OsAppArguments &Args) { GApp *App = new GApp("application/x-MyProgram", Args); if (App && App->IsOk()) { App->AppWnd = new MyWindow; App->Run(); delete App; } return 0; }
| AppArgs | The arguments passed in from the OS. |
1.5.7.1