Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 1:50:54 AM (19 years ago)
Author:
patrick
Message:

bsp: md3 model data read in as it seams correctly. no drawing yet! interactive model introduced

Location:
branches/bsp_model/src/lib/graphics/importer/md2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/md2/md2Model.cc

    r8346 r8439  
    9090  this->animationState.type = STAND;
    9191  this->animationState.numPlays = 1;
    92   this->setAnim(STAND);
     92  this->setAnimation(STAND);
    9393
    9494  this->debug();
     
    164164  the animation types can be looked up in the animationType table
    165165*/
    166 void MD2Model::setAnim(int type, int animPlayback)
     166void MD2Model::setAnimation(int type, int animPlayback)
    167167{
    168168  if( (type < 0) || (type > MAX_ANIMATIONS) )
  • branches/bsp_model/src/lib/graphics/importer/md2/md2Model.h

    r8346 r8439  
    2121#include "base_object.h"
    2222
    23 #include "model.h"
     23#include "interactive_model.h"
    2424#include "material.h"
    2525
     
    147147
    148148//! This is a MD2 Model class
    149 class MD2Model : public Model {
     149class MD2Model : public InteractiveModel {
    150150
    151151public:
     
    157157
    158158
    159   void setAnim(int type, int animPlayback = MD2_ANIM_LOOP);
     159  virtual void setAnimation(int type, int animPlayback = MD2_ANIM_LOOP);
    160160  /**  returns the current animation @returns animation type */
    161161  inline int MD2Model::getAnim() { return this->animationState.type; }
Note: See TracChangeset for help on using the changeset viewer.