Maratis Engine
Public Member Functions

MScene Class Reference

#include <MScene.h>

List of all members.

Public Member Functions

 MScene (void)
 ~MScene (void)
void setName (const char *name)
const char * getName (void)
void setDataMode (M_DATA_MODES dataMode)
M_DATA_MODES getDataMode (void)
void setScriptFilename (const char *scriptFilename)
const char * getScriptFilename (void)
void setGravity (const MVector3 &gravity)
MVector3getGravity (void)
void playLoopSounds (void)
void stopAllSounds (void)
void deleteObject (MObject3d *object)
MOCameraaddNewCamera (void)
MOCameraaddNewCamera (const MOCamera &camera)
MOLightaddNewLight (void)
MOLightaddNewLight (const MOLight &light)
MOEntityaddNewEntity (MMeshRef *meshRef)
MOEntityaddNewEntity (const MOEntity &entity)
MOSoundaddNewSound (MSoundRef *soundRef)
MOSoundaddNewSound (const MOSound &sound)
MOTextaddNewText (MFontRef *fontRef)
MOTextaddNewText (const MOText &text)
unsigned int getObjectsNumber (void)
unsigned int getCamerasNumber (void)
unsigned int getLightsNumber (void)
unsigned int getEntitiesNumber (void)
unsigned int getSoundsNumber (void)
unsigned int getTextsNumber (void)
void setCurrentCamera (unsigned int id)
unsigned int getCurrentCamera (void)
void setCurrentFrame (int currentFrame)
int getCurrentFrame (void)
MObject3dgetObjectByName (const char *name)
MOLightgetLightByName (const char *name)
MOCameragetCameraByName (const char *name)
MOEntitygetEntityByName (const char *name)
MOSoundgetSoundByName (const char *name)
MOTextgetTextByName (const char *name)
bool getObjectIndex (const char *name, unsigned int *id)
MObject3dgetObjectByIndex (unsigned int index)
MOLightgetLightByIndex (unsigned int index)
MOCameragetCameraByIndex (unsigned int index)
MOEntitygetEntityByIndex (unsigned int index)
MOSoundgetSoundByIndex (unsigned int index)
MOTextgetTextByIndex (unsigned int index)
void preparePhysics (void)
void updatePhysics (void)
void update (void)
void updateObjectsMatrices (void)
void draw (MOCamera *camera)

Constructor & Destructor Documentation

MScene::MScene ( void  )
MScene::~MScene ( void  )

Member Function Documentation

MOCamera * MScene::addNewCamera ( void  )
MOCamera * MScene::addNewCamera ( const MOCamera camera)
MOEntity * MScene::addNewEntity ( MMeshRef meshRef)
MOEntity * MScene::addNewEntity ( const MOEntity entity)
MOLight * MScene::addNewLight ( void  )
MOLight * MScene::addNewLight ( const MOLight light)
MOSound * MScene::addNewSound ( MSoundRef soundRef)
MOSound * MScene::addNewSound ( const MOSound sound)
MOText * MScene::addNewText ( MFontRef fontRef)
MOText * MScene::addNewText ( const MOText text)
void MScene::deleteObject ( MObject3d object)
void MScene::draw ( MOCamera camera)
MOCamera* MScene::getCameraByIndex ( unsigned int  index) [inline]
MOCamera * MScene::getCameraByName ( const char *  name)
unsigned int MScene::getCamerasNumber ( void  ) [inline]
unsigned int MScene::getCurrentCamera ( void  ) [inline]
int MScene::getCurrentFrame ( void  ) [inline]
M_DATA_MODES MScene::getDataMode ( void  ) [inline]
unsigned int MScene::getEntitiesNumber ( void  ) [inline]
MOEntity* MScene::getEntityByIndex ( unsigned int  index) [inline]
MOEntity * MScene::getEntityByName ( const char *  name)
MVector3* MScene::getGravity ( void  ) [inline]
MOLight* MScene::getLightByIndex ( unsigned int  index) [inline]
MOLight * MScene::getLightByName ( const char *  name)
unsigned int MScene::getLightsNumber ( void  ) [inline]
const char* MScene::getName ( void  ) [inline]
MObject3d* MScene::getObjectByIndex ( unsigned int  index) [inline]
MObject3d * MScene::getObjectByName ( const char *  name)
bool MScene::getObjectIndex ( const char *  name,
unsigned int *  id 
)
unsigned int MScene::getObjectsNumber ( void  ) [inline]
const char* MScene::getScriptFilename ( void  ) [inline]
MOSound* MScene::getSoundByIndex ( unsigned int  index) [inline]
MOSound * MScene::getSoundByName ( const char *  name)
unsigned int MScene::getSoundsNumber ( void  ) [inline]
MOText* MScene::getTextByIndex ( unsigned int  index) [inline]
MOText * MScene::getTextByName ( const char *  name)
unsigned int MScene::getTextsNumber ( void  ) [inline]
void MScene::playLoopSounds ( void  )
void MScene::preparePhysics ( void  )
void MScene::setCurrentCamera ( unsigned int  id) [inline]
void MScene::setCurrentFrame ( int  currentFrame) [inline]
void MScene::setDataMode ( M_DATA_MODES  dataMode) [inline]
void MScene::setGravity ( const MVector3 gravity) [inline]
void MScene::setName ( const char *  name)
void MScene::setScriptFilename ( const char *  scriptFilename)
void MScene::stopAllSounds ( void  )
void MScene::update ( void  )
void MScene::updateObjectsMatrices ( void  )
void MScene::updatePhysics ( void  )

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines