#include <Md3Model.h>
Classes | |
struct | Md3QuaternionTag |
Public Member Functions | |
Md3Model (const string &filename) throw (Md3Exception) | |
~Md3Model () | |
void | loadShaders () const |
void | draw () const |
void | renderFrameImmediate (int frame) const |
void | renderFrameItpWithVertexArrays (int frameA, int frameB, float interp) const |
bool | link (const string &name, const Md3Model *model) |
bool | unlink (const string &name) |
void | setScale (float scale) |
void | setTexture (const string &mesh, const Texture2D *tex) |
void | setupAnimation (int currFrame, int nextFrame, float interp) |
int | numMeshes () const |
int | numFrames () const |
int | numTags () const |
float | scale () const |
const string & | name () const |
Private Types | |
typedef shared_ptr< Md3Frame_t > | Md3FramePtr |
typedef shared_ptr< Md3Mesh > | Md3MeshPtr |
typedef shared_ptr < Md3QuaternionTag > | Md3TagPtr |
Private Attributes | |
Md3Header_t | _header |
vector< Md3FramePtr > | _frames |
vector< Md3MeshPtr > | _meshes |
vector< Md3TagPtr > | _qtags |
vector< const Md3Model * > | _links |
int | _currFrame |
int | _nextFrame |
float | _interp |
GLfloat | _scale |
string | _name |
Static Private Attributes | |
static const int | _kMd3Ident = 'I' + ('D'<<8) + ('P'<<16) + ('3'<<24) |
static const int | _kMd3Version = 15 |
Definition at line 268 of file Md3Model.h.
typedef shared_ptr<Md3Frame_t> Md3Model::Md3FramePtr [private] |
Definition at line 291 of file Md3Model.h.
typedef shared_ptr<Md3Mesh> Md3Model::Md3MeshPtr [private] |
Definition at line 292 of file Md3Model.h.
typedef shared_ptr<Md3QuaternionTag> Md3Model::Md3TagPtr [private] |
Definition at line 293 of file Md3Model.h.
Md3Model::Md3Model | ( | const string & | filename | ) | throw (Md3Exception) |
Definition at line 424 of file Md3Model.cpp.
Md3Model::~Md3Model | ( | ) |
Definition at line 490 of file Md3Model.cpp.
void Md3Model::loadShaders | ( | ) | const |
Definition at line 502 of file Md3Model.cpp.
void Md3Model::draw | ( | ) | const |
Definition at line 517 of file Md3Model.cpp.
void Md3Model::renderFrameImmediate | ( | int | frame | ) | const |
Definition at line 555 of file Md3Model.cpp.
void Md3Model::renderFrameItpWithVertexArrays | ( | int | frameA, | |
int | frameB, | |||
float | interp | |||
) | const |
Definition at line 574 of file Md3Model.cpp.
bool Md3Model::link | ( | const string & | name, | |
const Md3Model * | model | |||
) |
Definition at line 601 of file Md3Model.cpp.
bool Md3Model::unlink | ( | const string & | name | ) |
Definition at line 623 of file Md3Model.cpp.
void Md3Model::setScale | ( | float | scale | ) | [inline] |
Definition at line 305 of file Md3Model.h.
void Md3Model::setTexture | ( | const string & | mesh, | |
const Texture2D * | tex | |||
) |
Definition at line 644 of file Md3Model.cpp.
void Md3Model::setupAnimation | ( | int | currFrame, | |
int | nextFrame, | |||
float | interp | |||
) |
Definition at line 662 of file Md3Model.cpp.
int Md3Model::numMeshes | ( | ) | const [inline] |
Definition at line 310 of file Md3Model.h.
int Md3Model::numFrames | ( | ) | const [inline] |
Definition at line 311 of file Md3Model.h.
int Md3Model::numTags | ( | ) | const [inline] |
Definition at line 312 of file Md3Model.h.
float Md3Model::scale | ( | ) | const [inline] |
Definition at line 313 of file Md3Model.h.
const string& Md3Model::name | ( | ) | const [inline] |
Definition at line 314 of file Md3Model.h.
const int Md3Model::_kMd3Ident = 'I' + ('D'<<8) + ('P'<<16) + ('3'<<24) [static, private] |
Definition at line 320 of file Md3Model.h.
const int Md3Model::_kMd3Version = 15 [static, private] |
Definition at line 321 of file Md3Model.h.
Md3Header_t Md3Model::_header [private] |
Definition at line 324 of file Md3Model.h.
vector<Md3FramePtr> Md3Model::_frames [private] |
Definition at line 326 of file Md3Model.h.
vector<Md3MeshPtr> Md3Model::_meshes [private] |
Definition at line 327 of file Md3Model.h.
vector<Md3TagPtr> Md3Model::_qtags [private] |
Definition at line 328 of file Md3Model.h.
vector<const Md3Model*> Md3Model::_links [private] |
Definition at line 329 of file Md3Model.h.
int Md3Model::_currFrame [private] |
Definition at line 333 of file Md3Model.h.
int Md3Model::_nextFrame [private] |
Definition at line 334 of file Md3Model.h.
float Md3Model::_interp [private] |
Definition at line 335 of file Md3Model.h.
GLfloat Md3Model::_scale [private] |
Definition at line 337 of file Md3Model.h.
string Md3Model::_name [private] |
Definition at line 338 of file Md3Model.h.