LgiMain.cpp File Reference

#include "Lgi.h"
#include "GToken.h"

Functions

int LgiMain (OsAppArguments &AppArgs)
 The main entry point of a Lgi program.

Detailed Description

Author:
Matthew Allen

Function Documentation

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;
    }
Parameters:
AppArgs  The arguments passed in from the OS.


Generated on Wed Dec 1 15:41:01 2010 for Lgi by  doxygen 1.5.7.1