Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/particles/model_particles.h @ 9842

Last change on this file since 9842 was 7221, checked in by bensch, 19 years ago

orxonox/trunk: merged the std-branche back, it runs on windows and Linux

svn merge https://svn.orxonox.net/orxonox/branches/std . -r7202:HEAD

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