123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
-
-
- #ifndef _PARTICLE_H_
- #define _PARTICLE_H_
-
- #include <MatMath.h>
-
-
- class Particle {
- public:
-
-
-
- Particle();
-
-
-
- ~Particle();
-
-
-
- void setActive(bool active);
-
-
-
- void Force(float x, float y, float z);
-
-
-
- void Reset();
-
-
-
- void Speed(float x, float y, float z);
-
-
-
- void Color(float r, float g, float b);
-
-
-
- void Pos(float *x, float *y, float *z);
-
-
-
- void Color(float *r, float *g, float *b);
-
-
-
- float Life();
-
-
-
- void Update();
-
-
-
- int Texture();
-
-
-
- bool isActive();
-
-
-
- void TextureId(int t);
-
-
- private:
- bool _active;
- float _life;
- float _blend;
- int _texture;
- vec3_t _pos;
- vec3_t _color;
- vec3_t _dir;
- vec3_t _force;
- vec3_t _speed;
- };
-
- #endif
|