annotate Indoor_stuff.h @ 1271:5a3f48b370d5

Player::GetSkillIdxByOrder cleanup - extracting common branch bodies
author Grumpy7
date Sat, 15 Jun 2013 02:23:04 +0200
parents 0aeac0b9ca30
children 8a196c858180 24bc24b64ec2
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include "Render.h"
1016
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents: 795
diff changeset
3 #include "IndoorCameraD3D.h"
0
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7 /* 165 */
Ritor1
parents:
diff changeset
8 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
9 struct BspRenderer_stru2
Ritor1
parents:
diff changeset
10 {
Ritor1
parents:
diff changeset
11 void _43F9E1(__int16 x, int y, __int16 z, int w);
Ritor1
parents:
diff changeset
12
Ritor1
parents:
diff changeset
13 int _viewport_space_y;
Ritor1
parents:
diff changeset
14 int _viewport_space_w;
Ritor1
parents:
diff changeset
15 int field_8;
Ritor1
parents:
diff changeset
16 int field_C;
Ritor1
parents:
diff changeset
17 int field_10;
Ritor1
parents:
diff changeset
18 int field_14;
Ritor1
parents:
diff changeset
19 __int16 array_18[480];
Ritor1
parents:
diff changeset
20 __int16 array_3D8[480];
Ritor1
parents:
diff changeset
21 };
Ritor1
parents:
diff changeset
22 #pragma pack(pop)
Ritor1
parents:
diff changeset
23 extern BspRenderer_stru2 stru_F8A590;
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28 /* 164 */
Ritor1
parents:
diff changeset
29 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
30 struct BspRenderer_stru0
Ritor1
parents:
diff changeset
31 {
Ritor1
parents:
diff changeset
32 //----- (0043F2BF) --------------------------------------------------------
Ritor1
parents:
diff changeset
33 inline BspRenderer_stru0()
Ritor1
parents:
diff changeset
34 {
Ritor1
parents:
diff changeset
35 //_eh_vector_constructor_iterator_(std__vector_0007AC, 24, 4,
Ritor1
parents:
diff changeset
36 // (void (__thiscall *)(void *))IndoorCameraD3D_Vec4::IndoorCameraD3D_Vec4,
Ritor1
parents:
diff changeset
37 // (void (__thiscall *)(void *))IndoorCameraD3D_Vec4::dtor);
Ritor1
parents:
diff changeset
38 //for (int i = 0; i < 4; ++i)
Ritor1
parents:
diff changeset
39 // pVertices[i].flt_2C = 0.0f;
Ritor1
parents:
diff changeset
40 }
Ritor1
parents:
diff changeset
41
Ritor1
parents:
diff changeset
42 //----- (0043F2A9) --------------------------------------------------------
Ritor1
parents:
diff changeset
43 ~BspRenderer_stru0()
Ritor1
parents:
diff changeset
44 {
Ritor1
parents:
diff changeset
45 //_eh_vector_destructor_iterator_(this->std__vector_0007AC, 24, 4, IndoorCameraD3D_Vec4::dtor);
Ritor1
parents:
diff changeset
46 }
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48 unsigned __int16 uSectorID;
Ritor1
parents:
diff changeset
49 unsigned __int16 uViewportX;
Ritor1
parents:
diff changeset
50 unsigned __int16 uViewportY;
Ritor1
parents:
diff changeset
51 unsigned __int16 uViewportZ;
Ritor1
parents:
diff changeset
52 unsigned __int16 uViewportW;
Ritor1
parents:
diff changeset
53 __int16 field_A;
Ritor1
parents:
diff changeset
54 BspRenderer_stru2 field_C;
Ritor1
parents:
diff changeset
55 unsigned __int16 uFaceID;
Ritor1
parents:
diff changeset
56 __int16 field_7A6;
795
472ca68386d4 more stru10 & stru9
Nomad
parents: 794
diff changeset
57 unsigned int viewing_portal_id; // portal through which we're seeing this node
0
Ritor1
parents:
diff changeset
58 IndoorCameraD3D_Vec4 std__vector_0007AC[4];
795
472ca68386d4 more stru10 & stru9
Nomad
parents: 794
diff changeset
59 RenderVertexSoft pPortalBounding[4];
0
Ritor1
parents:
diff changeset
60 };
Ritor1
parents:
diff changeset
61 #pragma pack(pop)
Ritor1
parents:
diff changeset
62
Ritor1
parents:
diff changeset
63
Ritor1
parents:
diff changeset
64
Ritor1
parents:
diff changeset
65
676
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
66 #pragma pack(push, 1)
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
67 struct BspFace
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
68 {
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
69 unsigned __int16 uFaceID;
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
70 unsigned __int16 uNodeID;
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
71 };
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
72 #pragma pack(pop)
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
73
0
Ritor1
parents:
diff changeset
74
Ritor1
parents:
diff changeset
75 /* 163 */
Ritor1
parents:
diff changeset
76 #pragma pack(push, 1)
486
Nomad
parents: 67
diff changeset
77 struct BspRenderer // stru170
0
Ritor1
parents:
diff changeset
78 {
Ritor1
parents:
diff changeset
79 //----- (0043F282) --------------------------------------------------------
Ritor1
parents:
diff changeset
80 inline BspRenderer()
Ritor1
parents:
diff changeset
81 {
Ritor1
parents:
diff changeset
82 // _eh_vector_constructor_iterator_(field_FA8, 2252, 150,
Ritor1
parents:
diff changeset
83 // (void (__thiscall *)(void *))stru170_stru0::stru170_stru0,
Ritor1
parents:
diff changeset
84 // (void (__thiscall *)(void *))stru170_stru0::dtor);
676
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
85 num_faces = 0;
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
86 num_nodes = 0;
0
Ritor1
parents:
diff changeset
87 uNumVisibleNotEmptySectors = 0;
Ritor1
parents:
diff changeset
88 }
Ritor1
parents:
diff changeset
89
676
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
90 void AddFaceToRenderList_sw(unsigned int node_id, unsigned int uFaceID);
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
91 void AddFaceToRenderList_d3d(unsigned int node_id, unsigned int uFaceID);
0
Ritor1
parents:
diff changeset
92 void MakeVisibleSectorList();
486
Nomad
parents: 67
diff changeset
93 void DrawFaceOutlines();
0
Ritor1
parents:
diff changeset
94
676
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
95 unsigned int num_faces;
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
96 //__int16 pFaceIDs[2000];
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
97 BspFace faces[1000];
666
Ritor1
parents: 618
diff changeset
98 //char field_130[3700];
676
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
99 unsigned int num_nodes;
ecfb1b3c9a39 BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents: 666
diff changeset
100 BspRenderer_stru0 nodes[150];
0
Ritor1
parents:
diff changeset
101 unsigned int uNumVisibleNotEmptySectors;
Ritor1
parents:
diff changeset
102 unsigned __int16 pVisibleSectorIDs_toDrawDecorsActorsEtcFrom[6];
Ritor1
parents:
diff changeset
103 };
Ritor1
parents:
diff changeset
104 #pragma pack(pop)
Ritor1
parents:
diff changeset
105
Ritor1
parents:
diff changeset
106
Ritor1
parents:
diff changeset
107 extern struct BspRenderer *pBspRenderer; // idb
Ritor1
parents:
diff changeset
108
Ritor1
parents:
diff changeset
109
Ritor1
parents:
diff changeset
110
Ritor1
parents:
diff changeset
111
Ritor1
parents:
diff changeset
112
Ritor1
parents:
diff changeset
113
Ritor1
parents:
diff changeset
114 /* 160 */
Ritor1
parents:
diff changeset
115 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
116 struct stru167
Ritor1
parents:
diff changeset
117 {
Ritor1
parents:
diff changeset
118 char field_0;
Ritor1
parents:
diff changeset
119 char field_1;
Ritor1
parents:
diff changeset
120 char field_2;
Ritor1
parents:
diff changeset
121 char field_3;
Ritor1
parents:
diff changeset
122 char field_4;
Ritor1
parents:
diff changeset
123 char field_5;
Ritor1
parents:
diff changeset
124 __int16 field_6_rnd_value;
Ritor1
parents:
diff changeset
125 __int16 field_8_rnd_value;
Ritor1
parents:
diff changeset
126 __int16 field_A_rnd_value;
Ritor1
parents:
diff changeset
127 __int16 field_C_time_left;
Ritor1
parents:
diff changeset
128 __int16 field_E_time_to_live;
Ritor1
parents:
diff changeset
129 char field_10;
Ritor1
parents:
diff changeset
130 char field_11;
Ritor1
parents:
diff changeset
131 char field_12;
Ritor1
parents:
diff changeset
132 char field_13;
Ritor1
parents:
diff changeset
133 __int16 bgr16;
Ritor1
parents:
diff changeset
134 char field_16;
Ritor1
parents:
diff changeset
135 char field_17;
Ritor1
parents:
diff changeset
136 };
Ritor1
parents:
diff changeset
137 #pragma pack(pop)
Ritor1
parents:
diff changeset
138
Ritor1
parents:
diff changeset
139
Ritor1
parents:
diff changeset
140
Ritor1
parents:
diff changeset
141 /* 363 */
Ritor1
parents:
diff changeset
142 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
143 struct stru167_wrap
Ritor1
parents:
diff changeset
144 {
Ritor1
parents:
diff changeset
145 void _440F07();
Ritor1
parents:
diff changeset
146 int Push(__int16 a2, __int16 a3, __int16 a4, int a5, __int16 bgr);
Ritor1
parents:
diff changeset
147 void _440E91(__int16 x, int y, int z, int a5, __int16 bgr);
Ritor1
parents:
diff changeset
148
Ritor1
parents:
diff changeset
149 stru167 pElements[100];
Ritor1
parents:
diff changeset
150 int uNumElements;
Ritor1
parents:
diff changeset
151 int field_964;
Ritor1
parents:
diff changeset
152 };
Ritor1
parents:
diff changeset
153 #pragma pack(pop)
Ritor1
parents:
diff changeset
154 extern stru167_wrap array_5118E8;
Ritor1
parents:
diff changeset
155
Ritor1
parents:
diff changeset
156
Ritor1
parents:
diff changeset
157
Ritor1
parents:
diff changeset
158
Ritor1
parents:
diff changeset
159
Ritor1
parents:
diff changeset
160
Ritor1
parents:
diff changeset
161
Ritor1
parents:
diff changeset
162
Ritor1
parents:
diff changeset
163
Ritor1
parents:
diff changeset
164
Ritor1
parents:
diff changeset
165
Ritor1
parents:
diff changeset
166 /* 358 */
Ritor1
parents:
diff changeset
167 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
168 struct stru320
Ritor1
parents:
diff changeset
169 {
Ritor1
parents:
diff changeset
170 int field_0;
Ritor1
parents:
diff changeset
171 Plane_int_ plane_4;
Ritor1
parents:
diff changeset
172 Vec3_int_ vec_14;
Ritor1
parents:
diff changeset
173 Vec3_int_ vec_20;
Ritor1
parents:
diff changeset
174 unsigned int uCurrentAmbientLightLevel;
Ritor1
parents:
diff changeset
175 int field_30;
Ritor1
parents:
diff changeset
176 int field_34;
Ritor1
parents:
diff changeset
177 int field_38;
Ritor1
parents:
diff changeset
178 int pDeltaUV[2];
Ritor1
parents:
diff changeset
179 int field_44;
Ritor1
parents:
diff changeset
180 int field_48;
Ritor1
parents:
diff changeset
181 char field_4C[8];
Ritor1
parents:
diff changeset
182 Vec3_int_ rotated_normal;
Ritor1
parents:
diff changeset
183 Vec3_int_ vec_60;
Ritor1
parents:
diff changeset
184 int field_6C;
Ritor1
parents:
diff changeset
185 Vec3_int_ vec_70;
Ritor1
parents:
diff changeset
186 int field_7C;
Ritor1
parents:
diff changeset
187 Vec3_int_ vec_80;
Ritor1
parents:
diff changeset
188 Vec3_int_ vec_8C;
Ritor1
parents:
diff changeset
189 int field_98;
Ritor1
parents:
diff changeset
190 Vec3_int_ vec_9C;
Ritor1
parents:
diff changeset
191 int field_A8;
Ritor1
parents:
diff changeset
192 unsigned int uNumLightsApplied;
Ritor1
parents:
diff changeset
193 int _blv_lights_radii[20];
Ritor1
parents:
diff changeset
194 int _blv_lights_inv_radii[20];
Ritor1
parents:
diff changeset
195 int _blv_lights_xs[20];
Ritor1
parents:
diff changeset
196 int _blv_lights_ys[20];
Ritor1
parents:
diff changeset
197 int _blv_lights_light_dot_faces[20];
Ritor1
parents:
diff changeset
198 int field_240;
Ritor1
parents:
diff changeset
199 int field_244;
Ritor1
parents:
diff changeset
200 int field_248;
Ritor1
parents:
diff changeset
201 int field_24C;
Ritor1
parents:
diff changeset
202 int field_250;
Ritor1
parents:
diff changeset
203 int field_254;
Ritor1
parents:
diff changeset
204 int field_258;
Ritor1
parents:
diff changeset
205 int field_25C;
Ritor1
parents:
diff changeset
206 int field_260;
Ritor1
parents:
diff changeset
207 int field_264;
Ritor1
parents:
diff changeset
208 int field_268;
Ritor1
parents:
diff changeset
209 int field_26C;
Ritor1
parents:
diff changeset
210 int field_270;
Ritor1
parents:
diff changeset
211 int field_274;
Ritor1
parents:
diff changeset
212 int field_278;
Ritor1
parents:
diff changeset
213 int field_27C;
Ritor1
parents:
diff changeset
214 int field_280;
Ritor1
parents:
diff changeset
215 int field_284;
Ritor1
parents:
diff changeset
216 int field_288;
Ritor1
parents:
diff changeset
217 int field_28C;
Ritor1
parents:
diff changeset
218 int _blv_lights_zs[20];
Ritor1
parents:
diff changeset
219 float _blv_lights_rs[20];
Ritor1
parents:
diff changeset
220 float _blv_lights_gs[20];
Ritor1
parents:
diff changeset
221 float _blv_lights_bs[20];
Ritor1
parents:
diff changeset
222 char _blv_lights_types[20];
Ritor1
parents:
diff changeset
223 int field_3E4;
Ritor1
parents:
diff changeset
224 int field_3E8;
Ritor1
parents:
diff changeset
225 int field_3EC;
Ritor1
parents:
diff changeset
226 int field_3F0;
Ritor1
parents:
diff changeset
227 int field_3F4;
Ritor1
parents:
diff changeset
228 unsigned int uDefaultAmbientLightLevel;
Ritor1
parents:
diff changeset
229 };
Ritor1
parents:
diff changeset
230 #pragma pack(pop)
Ritor1
parents:
diff changeset
231
Ritor1
parents:
diff changeset
232 extern stru320 stru_F8AD28; // idb
Ritor1
parents:
diff changeset
233
Ritor1
parents:
diff changeset
234
Ritor1
parents:
diff changeset
235
Ritor1
parents:
diff changeset
236
Ritor1
parents:
diff changeset
237
Ritor1
parents:
diff changeset
238
Ritor1
parents:
diff changeset
239
Ritor1
parents:
diff changeset
240
Ritor1
parents:
diff changeset
241 /* 345 */
Ritor1
parents:
diff changeset
242 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
243 struct stru315
Ritor1
parents:
diff changeset
244 {
Ritor1
parents:
diff changeset
245 int field_0;
Ritor1
parents:
diff changeset
246 int field_4;
Ritor1
parents:
diff changeset
247 int field_8;
Ritor1
parents:
diff changeset
248 int field_C;
Ritor1
parents:
diff changeset
249 int field_10;
Ritor1
parents:
diff changeset
250 int field_14;
Ritor1
parents:
diff changeset
251 int field_18;
Ritor1
parents:
diff changeset
252 int field_1C;
Ritor1
parents:
diff changeset
253 int field_20;
Ritor1
parents:
diff changeset
254 int field_24;
Ritor1
parents:
diff changeset
255 int field_28;
Ritor1
parents:
diff changeset
256 int field_2C;
Ritor1
parents:
diff changeset
257 int field_30;
Ritor1
parents:
diff changeset
258 unsigned __int16 *field_34_palette;
Ritor1
parents:
diff changeset
259 unsigned __int16 *pTextureLOD;
Ritor1
parents:
diff changeset
260 unsigned int *pDepthBuffer;
Ritor1
parents:
diff changeset
261 unsigned __int16 *pColorBuffer;
Ritor1
parents:
diff changeset
262 };
Ritor1
parents:
diff changeset
263 #pragma pack(pop)
Ritor1
parents:
diff changeset
264
Ritor1
parents:
diff changeset
265
Ritor1
parents:
diff changeset
266
Ritor1
parents:
diff changeset
267
Ritor1
parents:
diff changeset
268
Ritor1
parents:
diff changeset
269 /* 346 */
Ritor1
parents:
diff changeset
270 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
271 struct stru316
Ritor1
parents:
diff changeset
272 {
Ritor1
parents:
diff changeset
273 int field_0;
Ritor1
parents:
diff changeset
274 int field_4;
Ritor1
parents:
diff changeset
275 int field_8;
Ritor1
parents:
diff changeset
276 int field_C;
Ritor1
parents:
diff changeset
277 int field_10;
Ritor1
parents:
diff changeset
278 int field_14;
Ritor1
parents:
diff changeset
279 int field_18;
Ritor1
parents:
diff changeset
280 int field_1C;
Ritor1
parents:
diff changeset
281 int field_20;
Ritor1
parents:
diff changeset
282 unsigned __int16 *field_24_palette;
Ritor1
parents:
diff changeset
283 };
Ritor1
parents:
diff changeset
284 #pragma pack(pop)
Ritor1
parents:
diff changeset
285
Ritor1
parents:
diff changeset
286
Ritor1
parents:
diff changeset
287
Ritor1
parents:
diff changeset
288
Ritor1
parents:
diff changeset
289
Ritor1
parents:
diff changeset
290
Ritor1
parents:
diff changeset
291 /* 134 */
Ritor1
parents:
diff changeset
292 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
293 struct stru141
Ritor1
parents:
diff changeset
294 {
Ritor1
parents:
diff changeset
295 int _47050A(int a2);
Ritor1
parents:
diff changeset
296
Ritor1
parents:
diff changeset
297 int field_0;
Ritor1
parents:
diff changeset
298 int prolly_normal_d;
Ritor1
parents:
diff changeset
299 int field_8;
Ritor1
parents:
diff changeset
300 int field_C;
Ritor1
parents:
diff changeset
301 int field_10;
Ritor1
parents:
diff changeset
302 int field_14;
Ritor1
parents:
diff changeset
303 int field_18;
Ritor1
parents:
diff changeset
304 int field_1C;
Ritor1
parents:
diff changeset
305 int field_20;
Ritor1
parents:
diff changeset
306 int field_24;
Ritor1
parents:
diff changeset
307 Vec3_int_ normal;
Ritor1
parents:
diff changeset
308 Vec3_int_ field_34;
Ritor1
parents:
diff changeset
309 Vec3_int_ normal2;
Ritor1
parents:
diff changeset
310 int field_4C;
Ritor1
parents:
diff changeset
311 int field_50;
Ritor1
parents:
diff changeset
312 int field_54;
Ritor1
parents:
diff changeset
313 Vec3_int_ field_58;
Ritor1
parents:
diff changeset
314 int field_64;
Ritor1
parents:
diff changeset
315 int field_68;
Ritor1
parents:
diff changeset
316 int field_6C;
Ritor1
parents:
diff changeset
317 int field_70;
Ritor1
parents:
diff changeset
318 unsigned int uSectorID;
Ritor1
parents:
diff changeset
319 unsigned int uFaceID;
Ritor1
parents:
diff changeset
320 int field_7C;
Ritor1
parents:
diff changeset
321 int field_80;
Ritor1
parents:
diff changeset
322 int field_84;
Ritor1
parents:
diff changeset
323 int field_88;
Ritor1
parents:
diff changeset
324 int sMaxX;
Ritor1
parents:
diff changeset
325 int sMinX;
Ritor1
parents:
diff changeset
326 int sMaxY;
Ritor1
parents:
diff changeset
327 int sMinY;
Ritor1
parents:
diff changeset
328 int sMaxZ;
Ritor1
parents:
diff changeset
329 int sMinZ;
Ritor1
parents:
diff changeset
330 int field_A4;
Ritor1
parents:
diff changeset
331 };
Ritor1
parents:
diff changeset
332 #pragma pack(pop)
Ritor1
parents:
diff changeset
333 extern stru141 stru_721530;
Ritor1
parents:
diff changeset
334
Ritor1
parents:
diff changeset
335
Ritor1
parents:
diff changeset
336
Ritor1
parents:
diff changeset
337
Ritor1
parents:
diff changeset
338
Ritor1
parents:
diff changeset
339
Ritor1
parents:
diff changeset
340 /* 378 */
Ritor1
parents:
diff changeset
341 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
342 struct stru337_stru0
Ritor1
parents:
diff changeset
343 {
Ritor1
parents:
diff changeset
344 int field_0;
Ritor1
parents:
diff changeset
345 int field_4;
Ritor1
parents:
diff changeset
346 int field_8;
Ritor1
parents:
diff changeset
347 int field_C;
Ritor1
parents:
diff changeset
348 int field_10;
Ritor1
parents:
diff changeset
349 };
Ritor1
parents:
diff changeset
350 #pragma pack(pop)
Ritor1
parents:
diff changeset
351
Ritor1
parents:
diff changeset
352
Ritor1
parents:
diff changeset
353
Ritor1
parents:
diff changeset
354 /* 377 */
Ritor1
parents:
diff changeset
355 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
356 struct stru337
Ritor1
parents:
diff changeset
357 {
Ritor1
parents:
diff changeset
358 stru337_stru0 field_0;
Ritor1
parents:
diff changeset
359 int field_14;
Ritor1
parents:
diff changeset
360 int field_18;
Ritor1
parents:
diff changeset
361 int field_1C;
Ritor1
parents:
diff changeset
362 int field_20;
Ritor1
parents:
diff changeset
363 int field_24;
Ritor1
parents:
diff changeset
364 int field_28;
Ritor1
parents:
diff changeset
365 int field_2C;
Ritor1
parents:
diff changeset
366 int field_30;
Ritor1
parents:
diff changeset
367 stru337_stru0 field_34;
Ritor1
parents:
diff changeset
368 };
Ritor1
parents:
diff changeset
369 #pragma pack(pop)
Ritor1
parents:
diff changeset
370 extern stru337 stru_F81018;
Ritor1
parents:
diff changeset
371
Ritor1
parents:
diff changeset
372
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
373 /* 291 */
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
374 enum PolygonType : __int8
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
375 {
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
376 POLYGON_Invalid = 0x0,
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
377 POLYGON_VerticalWall = 0x1,
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
378 POLYGON_unk = 0x2,
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
379 POLYGON_Floor = 0x3,
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
380 POLYGON_InBetweenFloorAndWall = 0x4,
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
381 POLYGON_Ceiling = 0x5,
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
382 POLYGON_InBetweenCeilingAndWall = 0x6,
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1202
diff changeset
383 };
0
Ritor1
parents:
diff changeset
384
Ritor1
parents:
diff changeset
385
Ritor1
parents:
diff changeset
386 /* 147 */
Ritor1
parents:
diff changeset
387 #pragma pack(push, 1)
67
3b4f8bd48e3b 25.01.13 (I did sky)
Ritor1
parents: 0
diff changeset
388
0
Ritor1
parents:
diff changeset
389 struct stru154
Ritor1
parents:
diff changeset
390 {
Ritor1
parents:
diff changeset
391 //----- (0049B001) --------------------------------------------------------
Ritor1
parents:
diff changeset
392 inline stru154()
Ritor1
parents:
diff changeset
393 {}
Ritor1
parents:
diff changeset
394
Ritor1
parents:
diff changeset
395 //----- (0049B027) --------------------------------------------------------
Ritor1
parents:
diff changeset
396 inline ~stru154()
Ritor1
parents:
diff changeset
397 {}
Ritor1
parents:
diff changeset
398
734
2f4e33c1ed24 stru154
Nomad
parents: 676
diff changeset
399 void GetFacePlaneAndClassify(struct ODMFace *a2, struct BSPVertexBuffer *a3);
2f4e33c1ed24 stru154
Nomad
parents: 676
diff changeset
400 void ClassifyPolygon(struct Vec3_float_ *pNormal, float dist);
2f4e33c1ed24 stru154
Nomad
parents: 676
diff changeset
401 void GetFacePlane(struct ODMFace *pFace, struct BSPVertexBuffer *pVertices, struct Vec3_float_ *pOutNormal, float *pOutDist);
0
Ritor1
parents:
diff changeset
402
Ritor1
parents:
diff changeset
403
Ritor1
parents:
diff changeset
404 void (__thiscall ***vdestructor_ptr)(stru154 *, bool);
Ritor1
parents:
diff changeset
405 Plane_float_ face_plane;
Ritor1
parents:
diff changeset
406 PolygonType polygonType;
Ritor1
parents:
diff changeset
407 char field_15;
Ritor1
parents:
diff changeset
408 char field_16;
Ritor1
parents:
diff changeset
409 char field_17;
Ritor1
parents:
diff changeset
410 };
Ritor1
parents:
diff changeset
411 #pragma pack(pop)
Ritor1
parents:
diff changeset
412
Ritor1
parents:
diff changeset
413
Ritor1
parents:
diff changeset
414
Ritor1
parents:
diff changeset
415
Ritor1
parents:
diff changeset
416
Ritor1
parents:
diff changeset
417 /* 392 */
Ritor1
parents:
diff changeset
418 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
419 struct stru352
Ritor1
parents:
diff changeset
420 {
Ritor1
parents:
diff changeset
421 int field_0;
Ritor1
parents:
diff changeset
422 int field_4;
Ritor1
parents:
diff changeset
423 int field_8;
Ritor1
parents:
diff changeset
424 int field_C;
Ritor1
parents:
diff changeset
425 int field_10;
Ritor1
parents:
diff changeset
426 int field_14;
Ritor1
parents:
diff changeset
427 int field_18;
Ritor1
parents:
diff changeset
428 int field_1C;
Ritor1
parents:
diff changeset
429 int field_20;
Ritor1
parents:
diff changeset
430 int field_24;
Ritor1
parents:
diff changeset
431 int field_28;
Ritor1
parents:
diff changeset
432 int field_2C;
Ritor1
parents:
diff changeset
433 int field_30;
Ritor1
parents:
diff changeset
434 int field_34;
Ritor1
parents:
diff changeset
435 };
Ritor1
parents:
diff changeset
436 #pragma pack(pop)
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1016
diff changeset
437 extern std::array<stru352, 480> stru_F83B80;