annotate ParticleEngine.h @ 88:6b46c3e15e21

29.10.12 //
author Ritor1
date Mon, 29 Oct 2012 21:54:06 +0600
parents bcc051713d20
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "Render.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 /* 305 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 struct Particle_
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 int bFree;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 float x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 float y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 float z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 float flt_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 float flt_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 float flt_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 unsigned int uDiffuse;
45
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
18 int timeToLive;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 unsigned int uTextureID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 float flt_28;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 int field_2C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 int field_30;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 int field_34;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 int field_38[12];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 /* 109 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 struct Particle
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 {
45
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
33 int uType; // 0x0000: empty
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
34 // 0x0100: color plane
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
35 // 0x0200: line
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
36 // 0x0400: bitmap plane
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
37 // 0x0800: sprite plane
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 float x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 float y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 float z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 float flt_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 float flt_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 float flt_18;
45
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
44 union
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
45 {
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
46 struct
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
47 {
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
48 unsigned char r, g, b, a;
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
49 };
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
50 unsigned int uParticleColor;
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
51 };
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
52 int timeToLive;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 unsigned int uTextureID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 float flt_28;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 float _x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 float _y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 float _z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 int field_38;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 int _rotation;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 int uScreenSpaceX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 int uScreenSpaceY;
45
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
62 int uScreenSpaceZ; // line end x
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
63 int uScreenSpaceW; // line end y
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
64 int sZValue;
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
65 int sZValue2; // line end z
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 int field_58;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 float flt_5C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 float flt_60;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 int uLightColor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 /* 111 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 struct stru2_LineList
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 unsigned int uNumLines;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 RenderVertexD3D3 pLineVertices[48];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 char field_604[60];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 /* 110 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 struct ParticleEngine
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 ParticleEngine();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 void ResetParticles();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 void AddParticle(Particle_ *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 void Draw();
45
bcc051713d20 BLV render & seffects
Nomad
parents: 0
diff changeset
98 void UpdateParticles();
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 bool ViewProject_TrueIfStillVisible(unsigned int uParticleID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 bool _48B5B3(unsigned int uID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 void DrawParticles_BLV();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 void DrawParticles_ODM();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 Particle pParticles[500];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 stru2_LineList pLines;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 char field_D160[4800];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 float field_E420;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 int uStartParticle;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 int uEndParticle;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 int uTimeElapsed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 #pragma pack(pop)