Changeset 296 for trunk/nv/interface/animated_mesh.hh
- Timestamp:
- 07/31/14 08:08:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/interface/animated_mesh.hh
r295 r296 26 26 public: 27 27 animation_entry( const std::string& name, bool looping, uint32 frame_rate, float a_start, float a_end ) : m_name( name ), m_looping( looping ), m_frame_rate( frame_rate ), 28 m_start( a_start ), m_end( a_end ), m_duration( m_end - m_start ) {}28 m_start( a_start ), m_end( a_end ), m_duration( m_end - m_start ), m_material_idx(0) {} 29 29 const std::string& get_name() const { return m_name; } 30 30 uint32 get_frame_rate() const { return m_frame_rate; } … … 43 43 m_frame_rate = rate; 44 44 } 45 void set_material_idx( uint32 idx ) { m_material_idx = idx; } 46 uint32 get_material_idx() const { return m_material_idx; } 45 47 virtual ~animation_entry() {} 46 48 protected: … … 51 53 float m_end; 52 54 float m_duration; 55 uint32 m_material_idx; 53 56 }; 54 57
Note: See TracChangeset
for help on using the changeset viewer.