Changeset 230 for trunk/src/gfx/skeletal_mesh.cc
- Timestamp:
- 05/06/14 12:39:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/skeletal_mesh.cc
r227 r230 11 11 12 12 13 nv::skeletal_mesh::skeletal_mesh( context* a_context, program* a_program, md5_loader* a_loader ) 14 : m_context( a_context ) 15 , m_program( a_program ) 16 , m_va( nullptr ) 13 nv::skeletal_mesh::skeletal_mesh( context* a_context, md5_loader* a_loader ) 14 : animated_mesh( a_context ) 17 15 , m_data( a_loader ) 18 16 , m_animation( nullptr ) … … 38 36 if ( m_animation ) m_animation->reset_animation(); 39 37 m_animation = a_anim; 38 // TODO : INSTANCE! 40 39 m_animation->reset_animation(); 41 40 } … … 64 63 } 65 64 66 void nv::skeletal_mesh::draw( render_state& rstate )67 {68 m_context->draw( nv::TRIANGLES, rstate, m_program, m_va, m_data->get_index_count(0) );69 }70 71 65 nv::skeletal_mesh::~skeletal_mesh() 72 66 { 73 67 delete m_va; 74 68 } 69 70 void nv::skeletal_mesh::run_animation( animation_entry* a_anim ) 71 { 72 skeletal_animation_entry * anim = down_cast<skeletal_animation_entry>(a_anim); 73 // TODO : INSTANCE! 74 setup_animation( anim->m_animation ); 75 }
Note: See TracChangeset
for help on using the changeset viewer.