TDME2 1.9.121
ParticleSystemEntity.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <tdme/tdme.h>
9
10using std::string;
11
15
16/**
17 * Particle system entity interface
18 * @author Andreas Drewke
19 * @version $Id$
20 */
22{
23 /**
24 * Public destructor
25 */
27
28 /**
29 * @return particle emitter
30 */
32
33 /**
34 * @return true if active / particles available
35 */
36 virtual bool isActive() = 0;
37
38 /**
39 * @return if auto emit is enabled
40 */
41 virtual bool isAutoEmit() = 0;
42
43 /**
44 * Set auto emit
45 * @param autoEmit auto emit
46 */
47 virtual void setAutoEmit(bool autoEmit) = 0;
48
49 /**
50 * Updates the particle entity
51 */
52 virtual void updateParticles() = 0;
53
54 /**
55 * Adds particles to this particle entity at given position
56 */
57 virtual int32_t emitParticles() = 0;
58
59 /**
60 * @return local transformations
61 */
63
64 /**
65 * Set local transformations
66 * @param transformations local transformations
67 */
68 virtual void setLocalTransformations(const Transformations& transformations) = 0;
69
70};
TDME engine entity.
Definition: Entity.h:31
Transformations which contain scale, rotations and translation.
Particle system entity interface.
virtual void updateParticles()=0
Updates the particle entity.
virtual void setAutoEmit(bool autoEmit)=0
Set auto emit.
virtual ParticleEmitter * getEmitter()=0
virtual const Transformations & getLocalTransformations()=0
virtual int32_t emitParticles()=0
Adds particles to this particle entity at given position.
virtual ~ParticleSystemEntity()
Public destructor.
virtual void setLocalTransformations(const Transformations &transformations)=0
Set local transformations.