Last change
on this file since 9697 was
9686,
checked in by bensch, 18 years ago
|
new_class_id: many more classes done
|
File size:
871 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 |
---|
13 | class ModelParticles : public ParticleSystem |
---|
14 | { |
---|
15 | NewObjectListDeclaration(ModelParticles); |
---|
16 | |
---|
17 | public: |
---|
18 | ModelParticles(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT); |
---|
19 | ModelParticles(const TiXmlElement* root); |
---|
20 | virtual ~ModelParticles(); |
---|
21 | |
---|
22 | virtual void loadParams(const TiXmlElement* root); |
---|
23 | |
---|
24 | void setMaterialTexture(const std::string& 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 | private: |
---|
32 | void init(); |
---|
33 | |
---|
34 | private: |
---|
35 | Material material; //!< A Material for all the Particles. |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* _MODEL_PARTICLE_SYSTEM_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.