#include <RenderablePicoModel.h>
Public Member Functions | |
RenderablePicoModel (picoModel_t *mod) | |
void | render (RenderStateFlags flags) const |
const AABB & | localAABB () const |
const std::string & | getSurfaceCount () const |
const std::string & | getVertexCount () const |
const std::string & | getPolyCount () const |
const ModelSkinList & | getSkinsForModel () const |
Return the skins associated with the given model. | |
void | applySkin (const std::string &skin) |
Private Types | |
typedef std::vector < RenderablePicoSurface > | SurfaceList |
Private Member Functions | |
int | getSurfaceCountInt () const |
int | getVertexCountInt () const |
int | getPolyCountInt () const |
Private Attributes | |
SurfaceList | _surfVec |
AABB | _localAABB |
ModelSkinList | modelSkinList |
std::string | polyCountStr |
std::string | surfaceCountStr |
std::string | vertexCountStr |
Definition at line 14 of file RenderablePicoModel.h.
typedef std::vector<RenderablePicoSurface> model::RenderablePicoModel::SurfaceList [private] |
Definition at line 9 of file RenderablePicoModel.h.
model::RenderablePicoModel::RenderablePicoModel | ( | picoModel_t * | mod | ) |
Constructor. Accepts a picoModel_t struct containing the raw model data loaded from picomodel
void model::RenderablePicoModel::applySkin | ( | const std::string & | skin | ) | [virtual] |
Apply the given skin to this model.
Implements model::IModel.
const std::string& model::RenderablePicoModel::getPolyCount | ( | ) | const [inline, virtual] |
Return the polycount (tricount) of this model by summing the surface polycounts.
Implements model::IModel.
Definition at line 89 of file RenderablePicoModel.h.
int model::RenderablePicoModel::getPolyCountInt | ( | ) | const [inline, private] |
Return the polycount (tricount) of this model by summing the surface polycounts.
Definition at line 44 of file RenderablePicoModel.h.
const ModelSkinList& model::RenderablePicoModel::getSkinsForModel | ( | ) | const [virtual] |
Return the skins associated with the given model.
Implements model::IModel.
const std::string& model::RenderablePicoModel::getSurfaceCount | ( | ) | const [inline, virtual] |
Return the number of surfaces in this model.
Implements model::IModel.
Definition at line 73 of file RenderablePicoModel.h.
int model::RenderablePicoModel::getSurfaceCountInt | ( | ) | const [inline, private] |
Return the number of surfaces in this model.
Definition at line 24 of file RenderablePicoModel.h.
const std::string& model::RenderablePicoModel::getVertexCount | ( | ) | const [inline, virtual] |
Return the number of vertices in this model, by summing the vertex counts for each surface
Implements model::IModel.
Definition at line 81 of file RenderablePicoModel.h.
References _localAABB.
int model::RenderablePicoModel::getVertexCountInt | ( | ) | const [inline, private] |
Return the number of vertices in this model, by summing the vertex counts for each surface
Definition at line 32 of file RenderablePicoModel.h.
References _surfVec.
const AABB& model::RenderablePicoModel::localAABB | ( | ) | const [inline, virtual] |
Return the enclosing AABB for this model.
Implements Bounded.
Definition at line 66 of file RenderablePicoModel.h.
void model::RenderablePicoModel::render | ( | RenderStateFlags | flags | ) | const |
Virtual render function from OpenGLRenderable.
AABB model::RenderablePicoModel::_localAABB [private] |
Definition at line 13 of file RenderablePicoModel.h.
Referenced by getVertexCount().
Definition at line 10 of file RenderablePicoModel.h.
Referenced by getVertexCountInt().
Definition at line 16 of file RenderablePicoModel.h.
Definition at line 18 of file RenderablePicoModel.h.
Definition at line 19 of file RenderablePicoModel.h.
Definition at line 20 of file RenderablePicoModel.h.