mainApplication Class Reference

Application Principale. Création de la Scene 3D. C'est un singleton. More...

#include <MainApplication.h>

List of all members.

Public Member Functions

 mainApplication ()
 Construction.
virtual ~mainApplication ()
 Destruction.
int go ()
 Main function: Lanch the Game and the Ogre Engine.
SceneManager * getSceneMgr ()
 Renvoie le SceneManager pour toutes les classes qui ont besoin de créer des entities.
void playMusic (String MusicFile)
 Joue un fichier MP3 en fond musical.

Static Public Member Functions

static mainApplicationgetSingletonPtr (void)

Protected Member Functions

bool setup ()
 Sets up the application.
bool loadConfig ()
 Load the config File.
void createScene ()
 Création de la scene principale (racine).
void createFrameListener ()
 Cree le Frame Listener principal.
void chooseSceneManager ()
 Creation du SceneManeger.
void createCamera ()
void createViewports ()
 Create one viewport.
void createCollisionEngine ()
 Initialize the Collision Engine (OgreOpcode).
void setupResources ()
 Method which will define the source of resources (other than current folder).

Protected Attributes

Root * mRoot
Camera * mCamera
RenderWindow * mWindow
SceneManager * mSceneMgr
mainFrameListenermFrameListener
String mLanguageCode
int mShadowsType


Detailed Description

Application Principale. Création de la Scene 3D. C'est un singleton.


Constructor & Destructor Documentation

mainApplication::mainApplication  ) 
 

Construction.

mainApplication::~mainApplication  )  [virtual]
 

Destruction.


Member Function Documentation

void mainApplication::chooseSceneManager  )  [protected]
 

Creation du SceneManeger.

void mainApplication::createCamera  )  [protected]
 

void mainApplication::createCollisionEngine  )  [protected]
 

Initialize the Collision Engine (OgreOpcode).

void mainApplication::createFrameListener  )  [protected]
 

Cree le Frame Listener principal.

void mainApplication::createScene  )  [protected]
 

Création de la scene principale (racine).

On cree un robot de TEST

void mainApplication::createViewports  )  [protected]
 

Create one viewport.

SceneManager * mainApplication::getSceneMgr  ) 
 

Renvoie le SceneManager pour toutes les classes qui ont besoin de créer des entities.

mainApplication * mainApplication::getSingletonPtr void   )  [static]
 

int mainApplication::go  ) 
 

Main function: Lanch the Game and the Ogre Engine.

bool mainApplication::loadConfig  )  [protected]
 

Load the config File.

void mainApplication::playMusic String  MusicFile  ) 
 

Joue un fichier MP3 en fond musical.

bool mainApplication::setup  )  [protected]
 

Sets up the application.

Returns false if the config file is not found

void mainApplication::setupResources  )  [protected]
 

Method which will define the source of resources (other than current folder).


Member Data Documentation

Camera* mainApplication::mCamera [protected]
 

mainFrameListener* mainApplication::mFrameListener [protected]
 

String mainApplication::mLanguageCode [protected]
 

Root* mainApplication::mRoot [protected]
 

SceneManager* mainApplication::mSceneMgr [protected]
 

int mainApplication::mShadowsType [protected]
 

RenderWindow* mainApplication::mWindow [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 27 21:33:15 2006 for Long Forgotten Earth by  doxygen 1.4.6-NO