Public Member Functions | Private Types | Private Attributes | Static Private Attributes

Md3Mesh Class Reference

#include <Md3Model.h>

Collaboration diagram for Md3Mesh:
Collaboration graph

List of all members.

Public Member Functions

 Md3Mesh (std::ifstream &ifs) throw (Md3Exception)
 ~Md3Mesh ()
void loadShader (int index)
void bindTexture () const
void setupVertexArrays (int frameA, int frameB, float interp, float scale)
void renderFrameImmediate (int frame, float scale) const
void renderWithVertexArrays () const
void setTexture (const Texture2D *tex)
const char * name () const

Private Types

typedef shared_ptr< Md3Shader_tMd3ShaderPtr
typedef shared_ptr< Md3Triangle_tMd3TrianglePtr
typedef shared_ptr< Md3Vertex_tMd3VertexPtr

Private Attributes

Md3MeshHeader_t _header
vector< Md3ShaderPtr_shaders
vector< Md3TrianglePtr_triangles
vector< Md3TexCoord_t_texCoords
vector< Md3VertexPtr_vertices
vector< GLuint > _indices
const Texture2D_tex

Static Private Attributes

static const NormalLookupTable _kAnorms
static const int _kMd3Ident = 'I' + ('D'<<8) + ('P'<<16) + ('3'<<24)
static vec3_t _kVertexArray []
static vec3_t _kNormalArray []

Detailed Description

Definition at line 206 of file Md3Model.h.

Member Typedef Documentation

typedef shared_ptr<Md3Shader_t> Md3Mesh::Md3ShaderPtr [private]

Definition at line 216 of file Md3Model.h.

typedef shared_ptr<Md3Triangle_t> Md3Mesh::Md3TrianglePtr [private]

Definition at line 217 of file Md3Model.h.

typedef shared_ptr<Md3Vertex_t> Md3Mesh::Md3VertexPtr [private]

Definition at line 218 of file Md3Model.h.

Constructor & Destructor Documentation

Md3Mesh::Md3Mesh ( std::ifstream &  ifs  )  throw (Md3Exception)

Definition at line 121 of file Md3Model.cpp.

Md3Mesh::~Md3Mesh (  ) 

Definition at line 204 of file Md3Model.cpp.

Member Function Documentation

void Md3Mesh::loadShader ( int  index  ) 

Definition at line 216 of file Md3Model.cpp.

void Md3Mesh::bindTexture (  )  const

Definition at line 240 of file Md3Model.cpp.

void Md3Mesh::setupVertexArrays ( int  frameA,
int  frameB,
float  interp,
float  scale 

Definition at line 278 of file Md3Model.cpp.

void Md3Mesh::renderFrameImmediate ( int  frame,
float  scale 
) const

Definition at line 323 of file Md3Model.cpp.

void Md3Mesh::renderWithVertexArrays (  )  const

Definition at line 381 of file Md3Model.cpp.

void Md3Mesh::setTexture ( const Texture2D tex  )  [inline]

Definition at line 229 of file Md3Model.h.

const char* Md3Mesh::name (  )  const [inline]

Definition at line 232 of file Md3Model.h.

Member Data Documentation

const NormalLookupTable Md3Mesh::_kAnorms [static, private]

Definition at line 238 of file Md3Model.h.

const int Md3Mesh::_kMd3Ident = 'I' + ('D'<<8) + ('P'<<16) + ('3'<<24) [static, private]

Definition at line 239 of file Md3Model.h.

vec3_t Md3Mesh::_kVertexArray [static, private]

Definition at line 242 of file Md3Model.h.

vec3_t Md3Mesh::_kNormalArray [static, private]

Definition at line 243 of file Md3Model.h.

Definition at line 246 of file Md3Model.h.

vector<Md3ShaderPtr> Md3Mesh::_shaders [private]

Definition at line 248 of file Md3Model.h.

Definition at line 249 of file Md3Model.h.

Definition at line 250 of file Md3Model.h.

vector<Md3VertexPtr> Md3Mesh::_vertices [private]

Definition at line 251 of file Md3Model.h.

vector<GLuint> Md3Mesh::_indices [private]

Definition at line 254 of file Md3Model.h.

const Texture2D* Md3Mesh::_tex [private]

Definition at line 257 of file Md3Model.h.

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