Morph-SynRJ
view trans_explode2.h @ 0:22de913c2d84
morph-synrj intro
| author | "Cedric Pinson <cedric.pinson@alcove.fr> <mornifle@plopbyte.net>" |
|---|---|
| date | Tue Nov 27 15:23:52 2007 +0100 (2007-11-27) |
| parents | |
| children |
line source
1 #ifndef TRANS_EXPLODE2_H
2 #define TRANS_EXPLODE2_H
4 #include "gl_header.h"
5 #include "cmn_texture.h"
6 #include "mth_vector3.h"
7 #include "mth_vector2.h"
9 struct transExplode2Element_t
10 {
11 mth::Vector2_t uvs;
12 mth::Vector2_t uvsVec;
13 mth::Vector3_t rotation;
14 mth::Vector3_t position;
15 mth::Vector3_t velocity;
16 float angle;
17 float size[2];
18 float alpha;
20 void Draw();
21 void Update();
22 };
25 class transExplode2_t
26 {
27 GLuint texture;
30 transExplode2Element_t* elements;
31 int nbElements;
33 int resX;
34 int resY;
36 bool started;
38 public:
40 transExplode2_t(){}
41 void Init(int _xsection,int _ysection);
44 void GetBuffer1();
45 void Draw();
46 void Update();
48 bool Started() { return started;}
49 void Start() { started=true;}
51 };
53 #endif
