Changeset 4213 in orxonox.OLD for orxonox/branches/md2_loader/src/lib
- Timestamp:
- May 18, 2005, 2:10:56 AM (20 years ago)
- Location:
- orxonox/branches/md2_loader/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc
r4212 r4213 603 603 604 604 605 void MD2Model2::tick(float time) 606 { 607 this->animationState.localTime += time; 608 } 609 605 610 void MD2Model2::draw() 606 611 { 612 if( likely(this->animationState.localTime > 0.0)) 613 this->animate(); 614 607 615 glPushMatrix(); 608 616 /* rotate because id software uses another orientation then the openGL default */ … … 663 671 664 672 665 void MD2Model2::animate(float time) 666 { 667 this->animationState.localTime += time; 668 673 void MD2Model2::animate() 674 { 669 675 if( this->animationState.localTime - this->animationState.lastTime > (1.0f / this->animationState.fps)) 670 676 { -
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.h
r4212 r4213 193 193 void tick(float dtS); 194 194 195 void animate(float time); 195 196 196 private: 197 197 void animate(); 198 198 void processLighting(); 199 199 void interpolate(sVec3D* verticesList);
Note: See TracChangeset
for help on using the changeset viewer.