YAGE
1.0
Yet Another Game Engine
|
Manager for all models in a scene. More...
#include <Models_Manager.h>
Public Member Functions | |
Models_Manager () | |
~Models_Manager () | |
void | Draw () |
The Scene_Manager will call this method. Notifies all the Scene_Container, Particle_System, and Light to draw. More... | |
void | DrawShadows () |
The Scene_Manager will call this method. Notifies all the Scene_Container, Particle_System, and Light to draw shadows. More... | |
void | Update () |
The Scene_Manager will call this method. Notifies all the Scene_Container, Particle_System, and Light to Draw(). More... | |
void | addLight (Light *light) |
Adds a light to the light list. More... | |
Scene_Container * | CreateModel (const std::string &modelPath, const Transform &transform, const std::string &texturePath="", const TextureType type=Texture_Diffuse) |
Creates a model and adds it to the model list. More... | |
Scene_Container * | CreateModel (const Scene_Container *&otherModel, const Transform &transform) |
Copies a model and adds it to the model list. More... | |
Particle_Container * | CreateParticleSystem (Transform transform, const std::string &texturePath) |
Creates particle system and adds it to the particle list. More... | |
Manager for all models in a scene.
Models_Manager::Models_Manager | ( | ) |
Models_Manager::~Models_Manager | ( | ) |
void Models_Manager::addLight | ( | Light * | light | ) |
Adds a light to the light list.
light | If non-null, the light. |
Scene_Container * Models_Manager::CreateModel | ( | const std::string & | modelPath, |
const Transform & | transform, | ||
const std::string & | texturePath = "" , |
||
const TextureType | type = Texture_Diffuse |
||
) |
Creates a model and adds it to the model list.
modelPath | Full pathname to the object file. |
transform | The transform. |
texturePath | Full pathname to the texture file. |
type | The texture type. |
Scene_Container * Models_Manager::CreateModel | ( | const Scene_Container *& | otherModel, |
const Transform & | transform | ||
) |
Copies a model and adds it to the model list.
otherModel | The other model. |
transform | The transform. |
Particle_Container * Models_Manager::CreateParticleSystem | ( | Transform | t, |
const std::string & | texturePath | ||
) |
Creates particle system and adds it to the particle list.
transform | The Transform |
texturePath | Full pathname to the texture file. |
void Models_Manager::Draw | ( | ) |
The Scene_Manager will call this method. Notifies all the Scene_Container, Particle_System, and Light to draw.
void Models_Manager::DrawShadows | ( | ) |
The Scene_Manager will call this method. Notifies all the Scene_Container, Particle_System, and Light to draw shadows.
void Models_Manager::Update | ( | ) |
The Scene_Manager will call this method. Notifies all the Scene_Container, Particle_System, and Light to Draw().