Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/particles/sprite_particles.h @ 6621

Last change on this file since 6621 was 6621, checked in by bensch, 18 years ago

orxonox/trunk: particle derivate… still working on this

File size: 890 bytes
Line 
1/*!
2 * @file particle_system.h
3
4*/
5
6#ifndef _SPRITE_PARTICLE_SYSTEM_H
7#define _SPRITE_PARTICLE_SYSTEM_H
8
9#include "particle_system.h"
10#include "material.h"
11
12//! A class to handle ParticleSystems
13class SpriteParticles : public ParticleSystem
14{
15
16public:
17  SpriteParticles(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT);
18  SpriteParticles(const TiXmlElement* root);
19  virtual ~SpriteParticles();
20
21  virtual void loadParams(const TiXmlElement* root);
22
23  void setMaterial(Material* material);
24  void setMaterialTexture(const char* textureFile);
25
26  /** @returns the Material that lies on this particles */
27  inline const Material* getMaterial() const { return &this->material; };
28
29  virtual void draw() const;
30
31  void debug() const;
32
33private:
34  void init();
35
36private:
37  Material          material;            //!< A Material for all the Particles.
38};
39
40#endif /* _SPRITE_PARTICLE_SYSTEM_H */
Note: See TracBrowser for help on using the repository browser.