annotate ParticleEngine.h @ 14:b47e9c80e741

On UI
author Nomad
date Sat, 13 Oct 2012 17:09:02 +0200
parents 8b8875f5b359
children bcc051713d20
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;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 int field_20;
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 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 int bFree;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 float x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 float y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 float z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 float flt_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 float flt_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 float flt_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 int uParticleColor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 int field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 unsigned int uTextureID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 float flt_28;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 float _x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 float _y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 float _z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 int field_38;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 int _rotation;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 int uScreenSpaceX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 int uScreenSpaceY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 float field_48;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 int field_4C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 int field_50;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 int field_54;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 int field_58;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 float flt_5C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 float flt_60;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 int uLightColor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 /* 111 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 struct stru2_LineList
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 unsigned int uNumLines;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 RenderVertexD3D3 pLineVertices[48];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 char field_604[60];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 /* 110 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 struct ParticleEngine
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 ParticleEngine();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 void ResetParticles();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 void AddParticle(Particle_ *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 void Draw();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 int UpdateParticles();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 bool ViewProject_TrueIfStillVisible(unsigned int uParticleID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 bool _48B5B3(unsigned int uID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 void DrawParticles_BLV();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 void DrawParticles_ODM();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 Particle pParticles[500];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 stru2_LineList pLines;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 char field_D160[4800];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 float field_E420;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 int uStartParticle;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 int uEndParticle;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 int uTimeElapsed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 #pragma pack(pop)