Changeset 4336 in orxonox.OLD for orxonox/branches/physics/src/lib/graphics/particles
- Timestamp:
- May 27, 2005, 8:22:54 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc
r4332 r4336 42 42 ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type) 43 43 { 44 44 this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem"); 45 45 this->material = NULL; 46 46 this->name = NULL; … … 123 123 124 124 // glID[0] = glGenLists(count); 125 if ( material)126 delete material;125 if (this->material) 126 delete this->material; 127 127 material = NULL; 128 128 129 if ( particleType == PARTICLE_SPRITE)130 { 131 material = new Material("transperencyMap");132 material->setDiffuseMap("pictures/radialTransparency.png");129 if (this->particleType == PARTICLE_SPRITE) 130 { 131 this->material = new Material("transperencyMap"); 132 this->material->setDiffuseMap("pictures/radialTransparency.png"); 133 133 // material->setTransparency(.5); 134 134 }
Note: See TracChangeset
for help on using the changeset viewer.