[535] | 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: |
---|
[609] | 17 | Ogre::ParticleSystem *particleSystem_; |
---|
[535] | 18 | |
---|
[609] | 19 | ParticleInterface( Ogre::SceneManager *sceneManager, Ogre::String name, Ogre::String templateName ); |
---|
[535] | 20 | ~ParticleInterface( void ); |
---|
[609] | 21 | void addToSceneNode( Ogre::SceneNode* sceneNode ); |
---|
[535] | 22 | void dettachFromSceneNode( void ); |
---|
[609] | 23 | Ogre::ParticleEmitter* getEmitter ( int emitterNr ); |
---|
[535] | 24 | void newEmitter ( void ); |
---|
[609] | 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 ); |
---|
[535] | 31 | int getRate(); |
---|
| 32 | void setRate( int r ); |
---|
[609] | 33 | Ogre::Real getDistance(); |
---|
| 34 | void setDistance( Ogre::Real d ); |
---|
| 35 | Ogre::ColourValue getColour( void ); |
---|
| 36 | void setColour( Ogre::ColourValue colour ); |
---|
[535] | 37 | void switchEnable( void ); |
---|
| 38 | |
---|
| 39 | private: |
---|
[609] | 40 | Ogre::SceneNode *sceneNode_; |
---|
| 41 | Ogre::SceneManager *sceneManager_; |
---|
| 42 | Ogre::Real distance_; |
---|
| 43 | Ogre::Real velocity_; |
---|
[535] | 44 | int rate_; |
---|
[609] | 45 | Ogre::ColourValue colour_; |
---|
[535] | 46 | int numberOfEmitters_; |
---|
| 47 | |
---|
| 48 | void standardizeEmitters(); |
---|
| 49 | }; |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | } |
---|
| 53 | #endif |
---|