1 | #ifndef MODULE_ParticleInterface_H |
---|
2 | #define MODULE_ParticleInterface_H |
---|
3 | |
---|
4 | // #include "ParticleInterface.h" |
---|
5 | #include <Ogre.h> |
---|
6 | #include <OIS/OIS.h> |
---|
7 | // #include <CEGUI/CEGUI.h> |
---|
8 | // #include <CEGUIRenderer.h> |
---|
9 | |
---|
10 | |
---|
11 | namespace particle |
---|
12 | { |
---|
13 | |
---|
14 | class ParticleInterface |
---|
15 | { |
---|
16 | public: |
---|
17 | Ogre::ParticleSystem *particleSystem_; |
---|
18 | |
---|
19 | ParticleInterface( Ogre::SceneManager *sceneManager, Ogre::String name, Ogre::String templateName ); |
---|
20 | ~ParticleInterface( void ); |
---|
21 | void addToSceneNode( Ogre::SceneNode* sceneNode ); |
---|
22 | void dettachFromSceneNode( void ); |
---|
23 | Ogre::ParticleEmitter* getEmitter ( int emitterNr ); |
---|
24 | void newEmitter ( void ); |
---|
25 | void setPositionOfEmitter ( int emitterNr, Ogre::Vector3 position ); |
---|
26 | Ogre::Vector3 getPositionOfEmitter ( int emitterNr ); |
---|
27 | void setDirection ( Ogre::Vector3 direction ); |
---|
28 | Ogre::Vector3 getDirection ( void ); |
---|
29 | Ogre::Real getVelocity(); |
---|
30 | void setVelocity( Ogre::Real v ); |
---|
31 | int getRate(); |
---|
32 | void setRate( int r ); |
---|
33 | Ogre::Real getDistance(); |
---|
34 | void setDistance( Ogre::Real d ); |
---|
35 | Ogre::ColourValue getColour( void ); |
---|
36 | void setColour( Ogre::ColourValue colour ); |
---|
37 | void switchEnable( void ); |
---|
38 | |
---|
39 | private: |
---|
40 | Ogre::SceneNode *sceneNode_; |
---|
41 | Ogre::SceneManager *sceneManager_; |
---|
42 | Ogre::Real distance_; |
---|
43 | Ogre::Real velocity_; |
---|
44 | int rate_; |
---|
45 | Ogre::ColourValue colour_; |
---|
46 | int numberOfEmitters_; |
---|
47 | |
---|
48 | void standardizeEmitters(); |
---|
49 | }; |
---|
50 | |
---|
51 | |
---|
52 | } |
---|
53 | #endif |
---|