Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6626 in orxonox.OLD for trunk/src/lib/particles/sprite_particles.cc


Ignore:
Timestamp:
Jan 20, 2006, 1:57:57 AM (18 years ago)
Author:
bensch
Message:

trunk: segfault prevention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/sprite_particles.cc

    r6623 r6626  
    8686  this->setClassID(CL_SPRITE_PARTICLES, "SpriteParticles");
    8787
    88   this->material = NULL;
     88  this->material.setDiffuseMap("maps/radial-trans-noise.png");
    8989}
    9090
     
    101101}
    102102
    103 // setting properties
    104103/**
    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 */
    115107void SpriteParticles::setMaterialTexture(const char* textureFile)
    116108{
Note: See TracChangeset for help on using the changeset viewer.