- Timestamp:
- 07/09/13 00:13:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/keyframed_mesh.cc
r158 r159 75 75 } 76 76 77 void keyframed_mesh::setup_animation( uint32 start, uint32 stop, uint32 fps, bool loop )77 void keyframed_mesh::setup_animation( uint32 start, uint32 count, uint32 fps, bool loop ) 78 78 { 79 79 m_start_frame = start; 80 m_stop_frame = st op;80 m_stop_frame = start+count-1; 81 81 m_looping = loop; 82 82 m_fps = fps; 83 m_active = ( stop > start );83 m_active = count > 1; 84 84 m_last_frame = start; 85 m_next_frame = ( stop > start? start + 1 : start );85 m_next_frame = (count > 1 ? start + 1 : start ); 86 86 m_interpolation = 0.0f; 87 87 m_time = 0;
Note: See TracChangeset
for help on using the changeset viewer.