Ignore:
Timestamp:
07/31/14 08:08:31 (11 years ago)
Author:
epyon
Message:
  • lua::table_guard is_* utility functions
  • minor tweaks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/interface/animated_mesh.hh

    r295 r296  
    2626        public:
    2727                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) {}
    2929                const std::string& get_name() const { return m_name; }
    3030                uint32 get_frame_rate() const { return m_frame_rate; }
     
    4343                        m_frame_rate = rate;
    4444                }
     45                void set_material_idx( uint32 idx ) { m_material_idx = idx; }
     46                uint32 get_material_idx() const { return m_material_idx; }
    4547                virtual ~animation_entry() {}
    4648        protected:
     
    5153                float  m_end;
    5254                float  m_duration;
     55                uint32 m_material_idx;
    5356        };
    5457
Note: See TracChangeset for help on using the changeset viewer.