Changeset 9826 in orxonox.OLD for branches/new_class_id/src/lib/graphics/importer/md2/md2Model.h
- Timestamp:
- Sep 26, 2006, 1:00:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/importer/md2/md2Model.h
r9824 r9826 171 171 virtual void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback); 172 172 /** returns the current animation @returns animation type */ 173 inline int getAnimation() { return this->animationState.type; }173 inline int getAnimation() const { return this->animationState.type; } 174 174 virtual void setAnimationSpeed(float speed) { this->animationSpeed = speed; } 175 virtual bool isAnimationFinished() { return (this->animationState.currentFrame == this->animationState.endFrame )?true:false; }175 virtual bool isAnimationFinished() const { return (this->animationState.currentFrame == this->animationState.endFrame )?true:false; } 176 176 /** scales the current model @param scaleFactor: the factor [0..1] to use for scaling */ 177 177 void scaleModel(float scaleFactor) { this->scaleFactor = scaleFactor;}
Note: See TracChangeset
for help on using the changeset viewer.