Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6630 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 20, 2006, 9:33:36 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: precache works, and the particle-systems get Linked.. (HACK)

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile.am

    r6455 r6630  
    1010
    1111orxonox_CPPFLAGS = -DIS_ORXONOX
     12orxonox_LDFLAGS = -u global_ModelParticles_Factory
    1213
    1314orxonox_DEPENDENCIES = \
     
    5556                $(StoryEntities_SOURCES_) \
    5657                orxonox.cc \
     58                \
     59                lib/particles/model_particles.cc \
     60                lib/particles/spark_particles.cc \
     61                lib/particles/sprite_particles.cc \
     62                \
    5763                subprojects/benchmark.cc
    5864
  • trunk/src/lib/particles/particle_system.cc

    r6629 r6630  
    260260void ParticleSystem::precache(unsigned int seconds, unsigned int ticksPerSecond)
    261261{
     262
     263  std::list<ParticleEmitter*>::iterator emitter;
     264  for (emitter = this->emitters.begin(); emitter != this->emitters.end(); emitter++)
     265    (*emitter)->updateNode(.1), (*emitter)->updateNode(.1);
     266
    262267  PRINTF(4)("Precaching %s::%s %d seconds %d timesPerSecond\n", this->getClassName(), this->getName(), seconds, ticksPerSecond);
    263268  this->debug();
     
    275280void ParticleSystem::tick(float dt)
    276281{
     282  printf("TICKED %f %d\n", dt, this->count);
    277283  Particle* tickPart = particles;  // the particle to Tick
    278284  Particle* prevPart = NULL;
Note: See TracChangeset for help on using the changeset viewer.