Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/particle-old/src/particle/ParticleInterface.h @ 491

Last change on this file since 491 was 360, checked in by sweber, 17 years ago

sweber: uploaded my files for using the particle and needed script-files

File size: 1.2 KB
Line 
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
10using namespace Ogre;
11
12namespace particle
13{
14
15class 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.