Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6022 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Dec 10, 2005, 8:33:08 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the NewModel branche back to the trunk.
merged with command
svn merge branches/newModel/ trunk/ -r 6016:HEAD
no conflicts

Location:
trunk/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/skybox.cc

    r5994 r6022  
    2020#include "load_param.h"
    2121#include "factory.h"
    22 #include "model.h"
    23 
     22#include "static_model.h"
     23#include "material.h"
    2424
    2525using namespace std;
     
    170170void SkyBox::rebuild()
    171171{
    172   Model* model = new Model();
     172  StaticModel* model = new StaticModel();
    173173
    174174  model->addVertex (-0.5*size, -0.5*size, 0.5*size);
  • trunk/src/world_entities/terrain.cc

    r5994 r6022  
    4040
    4141//  if (this->model != NULL)
    42     //this->ssp = new SpatialSeparation((AbstractModel*)this->model, 10.0f);
     42    //this->ssp = new SpatialSeparation((Model*)this->model, 10.0f);
    4343}
    4444
  • trunk/src/world_entities/weapons/test_gun.cc

    r5994 r6022  
    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.