Changeset 8943 in orxonox.OLD for branches/single_player_map/src/lib/graphics
- Timestamp:
- Jun 30, 2006, 3:21:44 AM (19 years ago)
- Location:
- branches/single_player_map/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/graphics/importer/interactive_model.h
r8894 r8943 40 40 virtual int getAnimation() = 0; 41 41 42 virtual bool isAnimationFinished() { return false; } 43 42 44 virtual void setAnimationSpeed(float speed) {} 43 45 }; -
branches/single_player_map/src/lib/graphics/importer/md2/md2Model.h
r8894 r8943 161 161 inline int MD2Model::getAnimation() { return this->animationState.type; } 162 162 virtual void setAnimationSpeed(float speed) { this->animationSpeed = speed; } 163 virtual bool isAnimationFinished() { return (this->animationState.currentFrame == this->animationState.endFrame )?true:false; } 163 164 /** scales the current model @param scaleFactor: the factor [0..1] to use for scaling */ 164 165 void scaleModel(float scaleFactor) { this->scaleFactor = scaleFactor;}
Note: See TracChangeset
for help on using the changeset viewer.