Changeset 239 for trunk/nv/gfx/keyframed_mesh.hh
- Timestamp:
- 05/17/14 02:35:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/gfx/keyframed_mesh.hh
r236 r239 37 37 { 38 38 public: 39 keyframed_mesh( context* a_context, mesh_data _old* a_data);40 virtual size_t get_index_count() const { return m_ data->get_index_count(); }39 keyframed_mesh( context* a_context, mesh_data* a_data, tag_map* a_tag_map ); 40 virtual size_t get_index_count() const { return m_index_count; } 41 41 virtual void run_animation( animation_entry* a_anim ); 42 42 size_t get_max_frames() const; … … 48 48 virtual ~keyframed_mesh(); 49 49 protected: 50 mesh_data_old* m_data; 50 struct vertex_pn 51 { 52 vec3 position; 53 vec3 normal; 54 }; 55 56 mesh_data* m_mesh_data; 57 tag_map* m_tag_map; 51 58 52 59 uint32 m_start_frame; … … 59 66 bool m_looping; 60 67 bool m_active; 68 69 uint32 m_index_count; 70 uint32 m_frame_count; 71 uint32 m_vertex_count; 61 72 }; 62 73 … … 65 76 { 66 77 public: 67 keyframed_mesh_gpu( context* a_context, mesh_data _old* a_data, program* a_program );78 keyframed_mesh_gpu( context* a_context, mesh_data* a_data, tag_map* a_tag_map, program* a_program ); 68 79 void update( uint32 ms ); 69 80 private: … … 78 89 { 79 90 public: 80 keyframed_mesh_cpu( context* a_context, mesh_data _old* a_data);91 keyframed_mesh_cpu( context* a_context, mesh_data* a_data, tag_map* a_tag_map ); 81 92 void update( uint32 ms ); 82 93 private: 83 std::vector<vec3> m_position; 84 std::vector<vec3> m_normal; 85 vertex_buffer* m_vb_position; 86 vertex_buffer* m_vb_normal; 94 std::vector<vertex_pn> m_vertex; 95 vertex_buffer* m_vb; 87 96 }; 88 97
Note: See TracChangeset
for help on using the changeset viewer.