22 #ifndef TETRAEDGE_TE_TE_PARTICLE_H 23 #define TETRAEDGE_TE_TE_PARTICLE_H 25 #include "common/str.h" 26 #include "tetraedge/te/te_vector3f32.h" 27 #include "tetraedge/te/te_real_timer.h" 28 #include "tetraedge/te/te_intrusive_ptr.h" 29 #include "tetraedge/te/te_3d_texture.h" 30 #include "tetraedge/te/te_scene.h" 38 TeElement() : _elapsedTime(0), _yOffset(0) {}
49 void setPosition(
const TeVector3f32 &pos) { _position = pos; }
50 void setDirection(
const TeVector3f32 &dir) { _direction = dir; }
51 void setSize(
float size) { _size = size; }
52 void setVolumeSize(
const TeVector3f32 &size) { _volumeSize = size; }
53 void setStartColor(
const TeColor &col) { _startColor = col; }
54 void setEndColor(
const TeColor &col) { _endColor = col; }
55 void setColorTime(
int time) { _colorTime = time; }
56 void setTime(
int time) { _time = time; }
57 void setPeriod(
int period) { _period = period; }
58 void setParticlePerPeriod(
int val) { _particlePerPeriod = val; }
59 void setEnabled(
bool enabled) { _enabled = enabled; }
60 void setStartLoop(
int startloop) { _startLoop = startloop; }
61 void setGravity(
float gravity) { _gravity = gravity; }
62 void setRandomDir(
bool val) { _randomDir = val; }
64 void setMatrix(
const TeMatrix4x4 &mat) { _matrix = mat; }
68 int startLoop()
const {
return _startLoop; }
72 static TeParticle *getIndexedParticle(
int idx);
73 static void cleanup();
75 static void deleteAll();
76 static void updateAll(
int val);
95 int _particlePerPeriod;
109 #endif // TETRAEDGE_TE_TE_PARTICLE_H Definition: te_particle.h:34
Definition: detection.h:27
Definition: te_color.h:30
Definition: te_model.h:44
Definition: te_matrix4x4.h:37
Definition: te_real_timer.h:28
Definition: te_intrusive_ptr.h:31
Definition: te_vector3f32.h:33
Definition: te_particle.h:36
Definition: te_scene.h:35
Definition: te_references_counter.h:27