Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
render::Model Class Reference

Representation of a model in the render world. More...

#include <Model.h>

Inheritance diagram for render::Model:
render::Renderable resource::ResourceEventReceiver scene::Node engine::Object

List of all members.

Public Member Functions

MaterialgetMaterial () const
 Gets the material which this mesh uses.
MeshDatagetMeshData () const
void getRenderOperation (RenderOperation &ro)
 Model (const std::string &name, MeshData *meshData)
 Model (MeshData *meshData)
void resourceLoaded (const resource::ResourceEvent &evt)
 Called just after a Resource has been loaded.
void resourceUnloaded (const resource::ResourceEvent &evt)
 Called just after a Resource has been unloaded.
void setMaterial (Material *material)
void setMaterial (const std::string &filename)
 Sets the name of the material which this mesh will use.
void setMeshData (const std::string &filename)
 Sets the mesh data this mesh will use.
void setMeshData (MeshData *meshData)
 ~Model ()

Protected Member Functions

void initProperties ()
void updateImpl (f32 elapsedTime)
void updateWorldTransform ()

Protected Attributes

MaterialmMaterial
MeshDatamMeshData
bool mModifiedWorldTransform

Static Protected Attributes

static u32 msNextGeneratedModelIndex = 0

Detailed Description

Representation of a model in the render world.


Constructor & Destructor Documentation

render::Model::Model ( MeshData meshData)
render::Model::Model ( const std::string &  name,
MeshData meshData 
)
render::Model::~Model ( )

Member Function Documentation

Material * render::Model::getMaterial ( ) const [virtual]

Gets the material which this mesh uses.

Reimplemented from render::Renderable.

References mMaterial.

MeshData * render::Model::getMeshData ( ) const

References mMeshData.

void render::Model::getRenderOperation ( RenderOperation ro) [virtual]
void render::Model::initProperties ( ) [protected]
void render::Model::resourceLoaded ( const resource::ResourceEvent evt) [virtual]

Called just after a Resource has been loaded.

Reimplemented from resource::ResourceEventReceiver.

References render::MeshData::getMaterial(), engine::Object::initialize(), mMaterial, mMeshData, and resource::ResourceEvent::source.

void render::Model::resourceUnloaded ( const resource::ResourceEvent evt) [virtual]

Called just after a Resource has been unloaded.

Reimplemented from resource::ResourceEventReceiver.

References mMeshData, resource::ResourceEvent::source, and engine::Object::uninitialize().

void render::Model::setMaterial ( const std::string &  filename)

Sets the name of the material which this mesh will use.

References resource::ResourceManager::getInstance(), mMaterial, and resource::RT_RESOURCE_RENDER_MATERIAL.

void render::Model::setMaterial ( Material material)

References mMaterial.

void render::Model::setMeshData ( MeshData meshData)
void render::Model::setMeshData ( const std::string &  filename)
void render::Model::updateImpl ( f32  elapsedTime) [protected, virtual]
void render::Model::updateWorldTransform ( ) [protected]

Member Data Documentation


The documentation for this class was generated from the following files:

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:09 by Doxygen (1.7.4)