Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2005, 7:52:50 PM (18 years ago)
Author:
bensch
Message:

newModel new static_model class added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newModel/src/world_entities/weapons/test_gun.cc

    r5994 r6021  
    2424
    2525#include "world_entity.h"
    26 #include "model.h"
     26#include "static_model.h"
    2727#include "test_bullet.h"
    2828#include "weapon_manager.h"
     
    219219  if( this->leftRight == W_RIGHT)
    220220    glScalef(1.0, 1.0, -1.0);
    221   this->getModel()->draw(1);
     221  static_cast<StaticModel*>(this->getModel())->draw(1);
    222222  glPopMatrix();
    223223
     
    230230  tmpRot = this->objectComponent1->getAbsDir().getSpacialAxis();
    231231  glRotatef (this->objectComponent1->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    232   this->getModel()->draw(0);
     232  static_cast<StaticModel*>(this->getModel())->draw(0);
    233233  glPopMatrix();
    234234}
Note: See TracChangeset for help on using the changeset viewer.