Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6268 in orxonox.OLD for branches/height_map/src/story_entities


Ignore:
Timestamp:
Dec 22, 2005, 7:35:59 PM (19 years ago)
Author:
bensch
Message:

heightMap: fixed the VertexArrayModel, and reverted everything, that was a BUG

Location:
branches/height_map/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/story_entities/world.cc

    r6267 r6268  
    7373#include "playable.h"
    7474
    75 #include "vertex_array_model.h"
    76 
    7775
    7876SHELL_COMMAND(speed, World, setSpeed);
     
    386384  localCamera->lookAt(playable);
    387385//  this->localPlayer->setParentMode(PNODE_ALL);
    388 //   if (sky != NULL)
    389 //   {
    390 //     this->sky->setParent(this->localCamera);
    391 //     this->sky->setParentMode(PNODE_MOVEMENT);
    392 //   }
    393 
    394   VertexArrayModel* mod = new VertexArrayModel;
    395   mod->planeModel(10.0, 10.0, 20, 20);
    396   mod->finalize();
    397   mod->debug();
    398   this->TEST = mod;
    399   this->testMat = new Material;
    400   this->testMat->setDiffuse( 1,1,1);
     386  if (sky != NULL)
     387  {
     388    this->sky->setParent(this->localCamera);
     389    this->sky->setParentMode(PNODE_MOVEMENT);
     390  }
    401391
    402392  // initialize debug coord system
     
    836826  GraphicsEngine::getInstance()->draw();
    837827  //TextEngine::getInstance()->draw();
    838   this->testMat->select();
    839   this->TEST->draw();
    840828}
    841829
  • branches/height_map/src/story_entities/world.h

    r6263 r6268  
    2525class OggPlayer;
    2626template<class T> class tList;
    27 
    28 #include "vertex_array_model.h"
    29 #include "material.h"
    3027
    3128//! The game world
     
    119116    WorldEntity* sky;                   //!< The Environmental Heaven of orxonox @todo insert this to environment insted
    120117    Terrain* terrain;                   //!< The Terrain of the World.
    121     Material* testMat;
    122     Model*   TEST;
     118
    123119    GLuint objectList;                  //!< temporary: @todo this will be ereased soon
    124120    tList<WorldEntity>* entities;       //!< A template List of all entities. Every moving thing should be included here, and world automatically updates them.
Note: See TracChangeset for help on using the changeset viewer.