Changeset 480 for trunk/legacy/skeletal_mesh.hh
- Timestamp:
- 11/03/15 19:06:23 (10 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/legacy/skeletal_mesh.hh
r477 r480 16 16 namespace nv 17 17 { 18 18 #if 0 19 19 class skeletal_animation_entry : public animation_entry 20 20 { … … 33 33 skeleton_binding m_data; 34 34 }; 35 36 class skeletal_mesh : public animated_mesh 37 { 38 public: 39 skeletal_mesh( context* a_context, const data_channel_set* a_mesh, const mesh_nodes_data* a_bone_data ); 40 virtual vertex_array get_vertex_array() const { return m_va; } 41 virtual size_t get_index_count() const { return m_index_count; } 42 virtual void run_animation( animation_entry& a_anim ) 43 { 44 update_animation( a_anim, 0 ); 45 } 46 virtual void update_program( program a_program ); 47 virtual void update_animation( animation_entry& a_anim, uint32 a_anim_time ); 48 virtual transform get_node_transform( uint32 node_id ) const; 49 virtual mat4 get_node_matrix( uint32 node_id ) const; 50 virtual sint16 get_parent_id() const { return m_parent_id; } 51 virtual uint32 get_node_count() const { return m_skeleton.size(); } 52 skeleton_instance& get_skeleton() { return m_skeleton; } 53 const mesh_nodes_data* get_bone_data() { return m_bone_data; } 54 context* get_context() { return m_context; } 55 ~skeletal_mesh() 56 { 57 m_context->release( m_va ); 58 } 59 protected: 60 skeleton_instance m_skeleton; 61 vertex_array m_va; 62 uint32 m_index_count; 63 context* m_context; 64 const mesh_nodes_data* m_bone_data; 65 sint16 m_parent_id; 66 }; 35 #endif 67 36 68 37 } // namespace nv
Note: See TracChangeset
for help on using the changeset viewer.