Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/terrain.cc
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/terrain.cc
r9406 r9709 34 34 35 35 36 37 CREATE_FACTORY(Terrain, CL_TERRAIN); 36 #include "class_id.h" 37 NewObjectListDefinitionID(Terrain, CL_TERRAIN); 38 CREATE_FACTORY(Terrain); 38 39 39 40 /** … … 89 90 { 90 91 if (objectList) 91 glDeleteLists(this-> objectList, 1);92 glDeleteLists(this->modelList, 1); 92 93 if( this->ssp) 93 94 delete ssp; … … 104 105 void Terrain::init() 105 106 { 106 this-> setClassID(CL_TERRAIN, "Terrain");107 this->registerObject(this, Terrain::_objectList); 107 108 this->toList(OM_ENVIRON_NOTICK); 108 109 this->toReflectionList(); 109 110 110 this-> objectList = 0;111 this->modelList = 0; 111 112 this->ssp = NULL; 112 113 this->vegetation = NULL; … … 207 208 208 209 if (this->objectList) 209 glCallList(this-> objectList);210 glCallList(this->modelList); 210 211 else if (this->getModel()) 211 212 this->getModel()->draw(); … … 256 257 if (debugTerrain == TERRAIN_DAVE) 257 258 { 258 objectList = glGenLists(1);259 glNewList ( objectList, GL_COMPILE);259 modelList = glGenLists(1); 260 glNewList (modelList, GL_COMPILE); 260 261 261 262 glColor3f(1.0,0,0);
Note: See TracChangeset
for help on using the changeset viewer.