YAGE  1.0
Yet Another Game Engine
Models_Manager Class Reference

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_ContainerCreateModel (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_ContainerCreateModel (const Scene_Container *&otherModel, const Transform &transform)
 Copies a model and adds it to the model list. More...
 
Particle_ContainerCreateParticleSystem (Transform transform, const std::string &texturePath)
 Creates particle system and adds it to the particle list. More...
 

Detailed Description

Manager for all models in a scene.

Constructor & Destructor Documentation

Models_Manager::Models_Manager ( )
Models_Manager::~Models_Manager ( )

Member Function Documentation

void Models_Manager::addLight ( Light light)

Adds a light to the light list.

Parameters
lightIf 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.

Parameters
modelPathFull pathname to the object file.
transformThe transform.
texturePathFull pathname to the texture file.
typeThe texture type.
Returns
null if it fails, else the new model.
Scene_Container * Models_Manager::CreateModel ( const Scene_Container *&  otherModel,
const Transform transform 
)

Copies a model and adds it to the model list.

Parameters
otherModelThe other model.
transformThe transform.
Returns
null if it fails, else the new model.
Particle_Container * Models_Manager::CreateParticleSystem ( Transform  t,
const std::string &  texturePath 
)

Creates particle system and adds it to the particle list.

Parameters
transformThe Transform
texturePathFull pathname to the texture file.
Returns
null if it fails, else the new particle system.
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().