#include <imodel.h>
Public Member Functions | |
virtual void | applySkin (const std::string &skin)=0 |
virtual const std::string & | getSurfaceCount () const =0 |
virtual const std::string & | getVertexCount () const =0 |
virtual const std::string & | getPolyCount () const =0 |
virtual const ModelSkinList & | getSkinsForModel () const =0 |
Return the skins associated with the given model. |
Interface for static models. This interface provides functions for obtaining information about a LWO or ASE model, such as its bounding box or poly count. The interface also inherits from OpenGLRenderable to allow model instances to be used for rendering.
Definition at line 51 of file imodel.h.
virtual void model::IModel::applySkin | ( | const std::string & | skin | ) | [pure virtual] |
Apply the given skin to this model.
skin | The ModelSkin instance to apply to this model. |
Implemented in model::RenderablePicoModel.
virtual const std::string& model::IModel::getPolyCount | ( | ) | const [pure virtual] |
Return the number of triangles in this model, equal to the sum of the triangle count from each surface.
Implemented in model::RenderablePicoModel.
virtual const ModelSkinList& model::IModel::getSkinsForModel | ( | ) | const [pure virtual] |
Return the skins associated with the given model.
Implemented in model::RenderablePicoModel.
virtual const std::string& model::IModel::getSurfaceCount | ( | ) | const [pure virtual] |
Return the number of material surfaces on this model. Each material surface consists of a set of polygons sharing the same material.
Implemented in model::RenderablePicoModel.
virtual const std::string& model::IModel::getVertexCount | ( | ) | const [pure virtual] |
Return the number of vertices in this model, equal to the sum of the vertex count from each surface.
Implemented in model::RenderablePicoModel.