Changeset 6626 in orxonox.OLD for trunk/src/lib/particles/sprite_particles.cc
- Timestamp:
- Jan 20, 2006, 1:57:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/sprite_particles.cc
r6623 r6626 86 86 this->setClassID(CL_SPRITE_PARTICLES, "SpriteParticles"); 87 87 88 this->material = NULL;88 this->material.setDiffuseMap("maps/radial-trans-noise.png"); 89 89 } 90 90 … … 101 101 } 102 102 103 // setting properties104 103 /** 105 * @brief sets the material to an external material 106 * @param material: the material to set this material to. 107 * 108 * !! important if the extern material gets deleted it MUST be unregistered here or segfault !! 109 */ 110 void SpriteParticles::setMaterial(Material* material) 111 { 112 this->material = *material; 113 } 114 104 * @brief sets the Texutre that is placed onto the particles 105 * @param textureFile the Texture to load onto these SpriteParticles 106 */ 115 107 void SpriteParticles::setMaterialTexture(const char* textureFile) 116 108 {
Note: See TracChangeset
for help on using the changeset viewer.