Changeset 5211 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Sep 21, 2005, 2:21:41 PM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/model.cc
r5115 r5211 350 350 delete this->normals; 351 351 if (this->triangles) 352 delete this->triangles;352 delete[] this->triangles; 353 353 354 354 this->vertices = NULL; 355 355 this->vTexture = NULL; 356 356 this->normals = NULL; 357 this->triangles = NULL; this->triangleCount = 0; 357 this->triangles = NULL; 358 this->triangleCount = 0; 358 359 } 359 360 -
trunk/src/lib/graphics/importer/texture.cc
r4836 r5211 45 45 Texture::~Texture() 46 46 { 47 if (this->texture )47 if (this->texture != 0) 48 48 glDeleteTextures(1, &this->texture); 49 49 } -
trunk/src/lib/graphics/light.cc
r5156 r5211 244 244 if (this->lights[i]) 245 245 delete lights[i]; 246 delete lights;246 delete[] lights; 247 247 LightManager::singletonRef = NULL; 248 248 } -
trunk/src/lib/graphics/render2D/element_2d.cc
r5118 r5211 90 90 this->parent = NULL; 91 91 this->children = new tList<Element2D>; 92 this->absDirection = 0.0; 92 93 this->relDirection = 0.0; 93 94 this->bRelCoorChanged = true; … … 844 845 NullElement2D::~NullElement2D () 845 846 { 846 //delete singletonRef;847 847 NullElement2D::singletonRef = NULL; 848 848 } -
trunk/src/lib/graphics/render2D/element_2d.h
r5113 r5211 193 193 Vector absCoordinate; //!< absolute coordinates in the world ( from (0,0,0) ) 194 194 float relDirection; //!< direction relative to the parent 195 float absDirection; //!< absolute dire vtion in the world ( from (0,0,1) )195 float absDirection; //!< absolute diretion in the world ( from (0,0,1) ) 196 196 197 197 Vector prevRelCoordinate; //!< The last Relative Coordinate from the last update-Cycle.
Note: See TracChangeset
for help on using the changeset viewer.