comparison ParticleEngine.h @ 87:c0cf9393af64

Слияние
author Ritor1
date Mon, 29 Oct 2012 09:28:08 +0600
parents bcc051713d20
children
comparison
equal deleted inserted replaced
86:c83d06692295 87:c0cf9393af64
13 float z; 13 float z;
14 float flt_10; 14 float flt_10;
15 float flt_14; 15 float flt_14;
16 float flt_18; 16 float flt_18;
17 unsigned int uDiffuse; 17 unsigned int uDiffuse;
18 int field_20; 18 int timeToLive;
19 unsigned int uTextureID; 19 unsigned int uTextureID;
20 float flt_28; 20 float flt_28;
21 int field_2C; 21 int field_2C;
22 int field_30; 22 int field_30;
23 int field_34; 23 int field_34;
28 28
29 /* 109 */ 29 /* 109 */
30 #pragma pack(push, 1) 30 #pragma pack(push, 1)
31 struct Particle 31 struct Particle
32 { 32 {
33 int bFree; 33 int uType; // 0x0000: empty
34 // 0x0100: color plane
35 // 0x0200: line
36 // 0x0400: bitmap plane
37 // 0x0800: sprite plane
34 float x; 38 float x;
35 float y; 39 float y;
36 float z; 40 float z;
37 float flt_10; 41 float flt_10;
38 float flt_14; 42 float flt_14;
39 float flt_18; 43 float flt_18;
40 int uParticleColor; 44 union
41 int field_20; 45 {
46 struct
47 {
48 unsigned char r, g, b, a;
49 };
50 unsigned int uParticleColor;
51 };
52 int timeToLive;
42 unsigned int uTextureID; 53 unsigned int uTextureID;
43 float flt_28; 54 float flt_28;
44 float _x; 55 float _x;
45 float _y; 56 float _y;
46 float _z; 57 float _z;
47 int field_38; 58 int field_38;
48 int _rotation; 59 int _rotation;
49 int uScreenSpaceX; 60 int uScreenSpaceX;
50 int uScreenSpaceY; 61 int uScreenSpaceY;
51 float field_48; 62 int uScreenSpaceZ; // line end x
52 int field_4C; 63 int uScreenSpaceW; // line end y
53 int field_50; 64 int sZValue;
54 int field_54; 65 int sZValue2; // line end z
55 int field_58; 66 int field_58;
56 float flt_5C; 67 float flt_5C;
57 float flt_60; 68 float flt_60;
58 int uLightColor; 69 int uLightColor;
59 }; 70 };
82 ParticleEngine(); 93 ParticleEngine();
83 94
84 void ResetParticles(); 95 void ResetParticles();
85 void AddParticle(Particle_ *a2); 96 void AddParticle(Particle_ *a2);
86 void Draw(); 97 void Draw();
87 int UpdateParticles(); 98 void UpdateParticles();
88 bool ViewProject_TrueIfStillVisible(unsigned int uParticleID); 99 bool ViewProject_TrueIfStillVisible(unsigned int uParticleID);
89 bool _48B5B3(unsigned int uID); 100 bool _48B5B3(unsigned int uID);
90 void DrawParticles_BLV(); 101 void DrawParticles_BLV();
91 void DrawParticles_ODM(); 102 void DrawParticles_ODM();
92 103