Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5976 in orxonox.OLD for branches/height_map/src/world_entities


Ignore:
Timestamp:
Dec 7, 2005, 5:21:41 PM (18 years ago)
Author:
bottac
Message:
 
Location:
branches/height_map/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/world_entities/terrain.cc

    r5967 r5976  
    2424#include "resource_manager.h"
    2525#include "model.h"
     26#include "material.h"
    2627#include "height_map.h"
    2728#include "glincl.h"
     
    3940
    4041  this->init();
    41  
     42
     43  this->tmp_mat = new Material(); 
    4244  // this->loadParams(root);
    4345
     
    204206  Vector tmpRot = this->getAbsDir().getSpacialAxis();
    205207  glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
     208
     209   this->tmp_mat->select();
     210
    206211  this->model->draw();
    207212  if (this->objectList)
  • branches/height_map/src/world_entities/terrain.h

    r5500 r5976  
    1515// FORWARD DECLARATION
    1616class SpatialSeparation;
     17class Material;
    1718
    1819//! A simple method to call a desired debug world.
     
    4344 private:
    4445   Model*              vegetation;
     46   Material*           tmp_mat;
    4547   int                 objectList;
    4648};
Note: See TracChangeset for help on using the changeset viewer.