World of Rigid Bodies (WoRB)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Main.cpp File Reference

The main entry point for both the stand-alone application. More...

#include "WoRB.h"
#include "Utilities.h"
#include "WoRB_TestBed.h"
Include dependency graph for Main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 The main entry point for the stand-alone version.

Variables

static WoRB_TestBed Application
static WoRB::GLUT_Framework
< WoRB_TestBed
glut

Detailed Description

The main entry point for both the stand-alone application.

Author:
Mikica Kocic
Version:
0.3
Date:
2012-05-10

Definition in file Main.cpp.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

The main entry point for the stand-alone version.

Definition at line 28 of file Main.cpp.

References WoRB::GLUT_Framework< GlutApplication >::Connect(), WoRB_TestBed::Initialize(), WoRB::GLUT_Framework< GlutApplication >::Initialize(), WoRB_TestBed::Run(), WoRB_TestBed::SetupAnimation(), and WoRB::GLUT_Framework< GlutApplication >::Terminate().

{
    if ( ! glut.Initialize( &argc, argv ) ) {
        return 0;
    }

    Application.Initialize ();
    Application.SetupAnimation ();

    glut.Connect( Application );

    Application.Run ();

    glut.Terminate ();

    return 0;
}

Variable Documentation

Definition at line 21 of file Main.cpp.

Definition at line 22 of file Main.cpp.