AnimatedMesh Class Reference

Collaboration diagram for AnimatedMesh:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void load (const std::string &filename)
void draw (const std::vector< cpe::v3 > &skel_pos, const std::vector< cpe::quaternion > &skel_orient, bool update)
void draw_cpu (const std::vector< cpe::v3 > &skel_pos, const std::vector< cpe::quaternion > &skel_orient, bool update)
void setup_shader (const std::string &vertex_shader, const std::string &fragment_shader)

Private Attributes

GLint weight0_index
GLint weight1_index
GLint weight2_index
GLint weight3_index
GLint bones_index
GLuint program
GLuint vbo_weights
GLuint vbo_bones
GLuint vbo_textures
GLuint vbo_indices
std::vector< AnimatedVertexvertices
std::vector< GLuint > indices
std::vector< GLfloat > tex_coords
std::vector< GLfloat > vertex_attrib0123
std::vector< GLfloat > vertex_attrib4

Member Function Documentation

void AnimatedMesh::draw ( const std::vector< cpe::v3 > &  skel_pos,
const std::vector< cpe::quaternion > &  skel_orient,
bool  update 
)

References bones_index, get_uni_loc(), indices, program, weight0_index, weight1_index, weight2_index, and weight3_index.

Referenced by display(), draw_cpu(), and draw_scene().

Here is the call graph for this function:

void AnimatedMesh::draw_cpu ( const std::vector< cpe::v3 > &  skel_pos,
const std::vector< cpe::quaternion > &  skel_orient,
bool  update 
)
void AnimatedMesh::load ( const std::string &  filename  ) 
void AnimatedMesh::setup_shader ( const std::string &  vertex_shader,
const std::string &  fragment_shader 
)

Member Data Documentation

GLint AnimatedMesh::bones_index [private]

Referenced by draw(), and setup_shader().

std::vector<GLuint> AnimatedMesh::indices [private]

Referenced by draw(), draw_cpu(), load(), and setup_shader().

GLuint AnimatedMesh::program [private]

Referenced by draw(), and setup_shader().

std::vector<GLfloat> AnimatedMesh::tex_coords [private]

Referenced by draw_cpu(), load(), and setup_shader().

GLuint AnimatedMesh::vbo_bones [private]

Referenced by setup_shader().

GLuint AnimatedMesh::vbo_indices [private]

Referenced by setup_shader().

GLuint AnimatedMesh::vbo_textures [private]

Referenced by setup_shader().

GLuint AnimatedMesh::vbo_weights [private]

Referenced by setup_shader().

std::vector<GLfloat> AnimatedMesh::vertex_attrib0123 [private]

Referenced by draw_cpu(), load(), and setup_shader().

std::vector<GLfloat> AnimatedMesh::vertex_attrib4 [private]

Referenced by draw_cpu(), load(), and setup_shader().

std::vector<AnimatedVertex> AnimatedMesh::vertices [private]

Referenced by draw_cpu(), load(), and setup_shader().

GLint AnimatedMesh::weight0_index [private]

Referenced by draw(), and setup_shader().

GLint AnimatedMesh::weight1_index [private]

Referenced by draw(), and setup_shader().

GLint AnimatedMesh::weight2_index [private]

Referenced by draw(), and setup_shader().

GLint AnimatedMesh::weight3_index [private]

Referenced by draw(), and setup_shader().


The documentation for this class was generated from the following files:
Generated on Tue Dec 28 10:12:10 2010 by  doxygen 1.6.3