Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6619 in orxonox.OLD for trunk/src/lib/particles/particle_emitter.h


Ignore:
Timestamp:
Jan 19, 2006, 6:23:56 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: rendering without the ParticleEngine, so now we are FAST :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/particle_emitter.h

    r6512 r6619  
    2121
    2222//! The form of the Emitter to emit from
    23   typedef enum EMITTER_TYPE
     23typedef enum EMITTER_TYPE
    2424{
    2525  EMITTER_DOT     = 1,
     
    3030
    3131//! A class to handle an Emitter.
    32 class ParticleEmitter : public PNode {
    33 
    34  public:
     32class ParticleEmitter : public PNode
     33{
     34  friend class ParticleSystem;
     35public:
    3536  ParticleEmitter(const Vector& direction, float angle = .5,
    3637                  float emissionRate = 1.0, float velocity = 1.0);
     
    4647  void tick(float dt, ParticleSystem* system);
    4748
     49  void setSystem(ParticleSystem* system);
     50  ParticleSystem* getSystem() const { return this->system; };
     51
    4852  /* controlling the behavour: these can be used as Animation interfaces */
    4953  void setType(EMITTER_TYPE type);
     
    5660  void setEmissionMomentum(float momentum, float randomMomentum = 0.0);
    5761
    58   void setDirection(float x, float y, float z) { this->direction = Vector(x,y,z); }; //!< todo this should be done via PNODE
     62  void setDirection(float x, float y, float z) { this->direction = Vector(x,y,z); }
     63  ; //!< todo this should be done via PNODE
    5964
    6065  /** @returns the type of the emitter */
     
    7782  void debug() const;
    7883
    79  private:
     84
     85private:
     86  ParticleSystem* system;            //!< The ParticleSystem this Emitter Emits into.
     87
    8088  EMITTER_TYPE    type;              //!< The type of emitter this is.
    8189  float           emitterSize;       //!< The size of the emitter (not for EMITTER_DOT).
Note: See TracChangeset for help on using the changeset viewer.