- Timestamp:
 - Sep 26, 2006, 1:00:17 AM (19 years ago)
 - Location:
 - branches/new_class_id/src/lib/graphics/importer
 - Files:
 - 
          
- 3 edited
 
- 
          interactive_model.h (modified) (1 diff)
 - 
          md2/md2Model.h (modified) (1 diff)
 - 
          md3/md3_model.h (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/new_class_id/src/lib/graphics/importer/interactive_model.h
r9715 r9826 39 39 virtual void setAnimation(int animNum, int playbackMode = 0) = 0; 40 40 virtual void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback) {} 41 virtual int getAnimation() = 0;41 virtual int getAnimation() const = 0; 42 42 43 43 virtual bool isAnimationFinished() { return false; }  - 
        
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;}  - 
        
branches/new_class_id/src/lib/graphics/importer/md3/md3_model.h
r8724 r9826 45 45 46 46 virtual void setAnimation(int animNum, int playbackMode = 0) {} 47 virtual int getAnimation() { return 0;}47 virtual int getAnimation() const { return 0;} 48 48 49 49 virtual void tick(float dt);  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






