|
Last change
on this file since 608 was
535,
checked in by nicolasc, 18 years ago
|
- moved particle(-system) to a better place
- included particlesystem (but could not get it working)
- some minor cleanup
|
|
File size:
1.2 KB
|
| Rev | Line | |
|---|
| [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 | using namespace Ogre; |
|---|
| 11 | |
|---|
| 12 | namespace particle |
|---|
| 13 | { |
|---|
| 14 | |
|---|
| 15 | class ParticleInterface |
|---|
| 16 | { |
|---|
| 17 | public: |
|---|
| 18 | ParticleSystem *particleSystem_; |
|---|
| 19 | |
|---|
| 20 | ParticleInterface( SceneManager *sceneManager, String name, String templateName ); |
|---|
| 21 | ~ParticleInterface( void ); |
|---|
| 22 | void addToSceneNode( SceneNode* sceneNode ); |
|---|
| 23 | void dettachFromSceneNode( void ); |
|---|
| 24 | ParticleEmitter* getEmitter ( int emitterNr ); |
|---|
| 25 | void newEmitter ( void ); |
|---|
| 26 | void setPositionOfEmitter ( int emitterNr, Vector3 position ); |
|---|
| 27 | Vector3 getPositionOfEmitter ( int emitterNr ); |
|---|
| 28 | void setDirection ( Vector3 direction ); |
|---|
| 29 | Vector3 getDirection ( void ); |
|---|
| 30 | Real getVelocity(); |
|---|
| 31 | void setVelocity( Real v ); |
|---|
| 32 | int getRate(); |
|---|
| 33 | void setRate( int r ); |
|---|
| 34 | Real getDistance(); |
|---|
| 35 | void setDistance( Real d ); |
|---|
| 36 | ColourValue getColour( void ); |
|---|
| 37 | void setColour( ColourValue colour ); |
|---|
| 38 | void switchEnable( void ); |
|---|
| 39 | |
|---|
| 40 | private: |
|---|
| 41 | SceneNode *sceneNode_; |
|---|
| 42 | SceneManager *sceneManager_; |
|---|
| 43 | Real distance_; |
|---|
| 44 | Real velocity_; |
|---|
| 45 | int rate_; |
|---|
| 46 | ColourValue colour_; |
|---|
| 47 | int numberOfEmitters_; |
|---|
| 48 | |
|---|
| 49 | void standardizeEmitters(); |
|---|
| 50 | }; |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | } |
|---|
| 54 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.