0
|
1 #pragma once
|
|
2 #include "Render.h"
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7 /* 165 */
|
|
8 #pragma pack(push, 1)
|
|
9 struct stru170_stru2
|
|
10 {
|
|
11 __int16 *_43F9E1(__int16 x, int y, __int16 z, int w);
|
|
12
|
|
13 int _viewport_space_y;
|
|
14 int field_4;
|
|
15 int field_8;
|
|
16 int field_C;
|
|
17 int field_10;
|
|
18 int field_14;
|
|
19 __int16 array_18[480];
|
|
20 __int16 array_3D8[480];
|
|
21 };
|
|
22 #pragma pack(pop)
|
|
23 extern stru170_stru2 stru_F8A590;
|
|
24
|
|
25
|
|
26
|
|
27
|
|
28 /* 164 */
|
|
29 #pragma pack(push, 1)
|
|
30 struct stru170_stru0
|
|
31 {
|
|
32 //----- (0043F2BF) --------------------------------------------------------
|
|
33 inline stru170_stru0()
|
|
34 {
|
|
35 //_eh_vector_constructor_iterator_(std__vector_0007AC, 24, 4,
|
|
36 // (void (__thiscall *)(void *))IndoorCameraD3D_Vec4::IndoorCameraD3D_Vec4,
|
|
37 // (void (__thiscall *)(void *))IndoorCameraD3D_Vec4::dtor);
|
|
38 for (int i = 0; i < 4; ++i)
|
|
39 pVertices[i].flt_2C = 0.0f;
|
|
40 }
|
|
41
|
|
42 //----- (0043F2A9) --------------------------------------------------------
|
|
43 ~stru170_stru0()
|
|
44 {
|
|
45 //_eh_vector_destructor_iterator_(this->std__vector_0007AC, 24, 4, IndoorCameraD3D_Vec4::dtor);
|
|
46 }
|
|
47
|
|
48 unsigned __int16 uSectorID;
|
|
49 unsigned __int16 uViewportX;
|
|
50 unsigned __int16 uViewportY;
|
|
51 unsigned __int16 uViewportZ;
|
|
52 unsigned __int16 uViewportW;
|
|
53 __int16 field_A;
|
|
54 stru170_stru2 field_C;
|
|
55 unsigned __int16 uFaceID;
|
|
56 __int16 field_7A6;
|
|
57 unsigned int std__vector_0007A8;
|
|
58 IndoorCameraD3D_Vec4 std__vector_0007AC[4];
|
|
59 RenderVertexSoft pVertices[4];
|
|
60 };
|
|
61 #pragma pack(pop)
|
|
62
|
|
63
|
|
64
|
|
65
|
|
66
|
|
67 /* 163 */
|
|
68 #pragma pack(push, 1)
|
|
69 struct stru170
|
|
70 {
|
|
71 //----- (0043F282) --------------------------------------------------------
|
|
72 inline stru170()
|
|
73 {
|
|
74 // _eh_vector_constructor_iterator_(field_FA8, 2252, 150,
|
|
75 // (void (__thiscall *)(void *))stru170_stru0::stru170_stru0,
|
|
76 // (void (__thiscall *)(void *))stru170_stru0::dtor);
|
|
77 }
|
|
78
|
|
79 void _4AFB86(int a2, unsigned int uFaceID);
|
|
80 void _4B0EA8(signed int a2, unsigned int uFaceID);
|
45
|
81 void RenderWalls();
|
0
|
82
|
|
83 unsigned int uNumFaceIDs;
|
|
84 __int16 pFaceIDs[150];
|
|
85 char field_130[3700];
|
|
86 unsigned int std__vector_000FA8;
|
|
87 stru170_stru0 field_FA8[150];
|
|
88 int field_53730;
|
|
89 unsigned __int16 pSectorIDs_toDrawDecorationsFrom[6];
|
|
90 };
|
|
91 #pragma pack(pop)
|
|
92
|
|
93
|
|
94 extern struct stru170 *pStru170; // idb
|
|
95
|
|
96
|
|
97
|
|
98
|
|
99
|
|
100
|
|
101 /* 160 */
|
|
102 #pragma pack(push, 1)
|
|
103 struct stru167
|
|
104 {
|
|
105 char field_0;
|
|
106 char field_1;
|
|
107 char field_2;
|
|
108 char field_3;
|
|
109 char field_4;
|
|
110 char field_5;
|
45
|
111 __int16 field_6_rnd_value;
|
|
112 __int16 field_8_rnd_value;
|
|
113 __int16 field_A_rnd_value;
|
|
114 __int16 field_C_time_left;
|
|
115 __int16 field_E_time_to_live;
|
0
|
116 char field_10;
|
|
117 char field_11;
|
|
118 char field_12;
|
|
119 char field_13;
|
|
120 __int16 bgr16;
|
|
121 char field_16;
|
|
122 char field_17;
|
|
123 };
|
|
124 #pragma pack(pop)
|
|
125
|
|
126
|
|
127
|
|
128 /* 363 */
|
|
129 #pragma pack(push, 1)
|
|
130 struct stru167_wrap
|
|
131 {
|
|
132 void _440F07();
|
|
133 int Push(__int16 a2, __int16 a3, __int16 a4, int a5, __int16 bgr);
|
|
134 void _440E91(__int16 x, int y, int z, int a5, __int16 bgr);
|
|
135
|
|
136 stru167 pElements[100];
|
|
137 int uNumElements;
|
|
138 int field_964;
|
|
139 };
|
|
140 #pragma pack(pop)
|
|
141 extern stru167_wrap array_5118E8;
|
|
142
|
|
143
|
|
144
|
|
145
|
|
146
|
|
147
|
|
148
|
|
149
|
|
150
|
|
151
|
|
152
|
|
153 /* 358 */
|
|
154 #pragma pack(push, 1)
|
|
155 struct stru320
|
|
156 {
|
|
157 int field_0;
|
|
158 Plane_int_ plane_4;
|
|
159 Vec3_int_ vec_14;
|
|
160 Vec3_int_ vec_20;
|
|
161 int field_2C;
|
|
162 int field_30;
|
|
163 int field_34;
|
|
164 int field_38;
|
|
165 int pDeltaUV[2];
|
|
166 int field_44;
|
|
167 int field_48;
|
|
168 char field_4C[8];
|
|
169 Vec3_int_ rotated_normal;
|
|
170 Vec3_int_ vec_60;
|
|
171 int field_6C;
|
|
172 Vec3_int_ vec_70;
|
|
173 int field_7C;
|
|
174 Vec3_int_ vec_80;
|
|
175 Vec3_int_ vec_8C;
|
|
176 int field_98;
|
|
177 Vec3_int_ vec_9C;
|
|
178 int field_A8;
|
|
179 int field_AC;
|
|
180 int _blv_lights_radii[20];
|
|
181 int _blv_lights_inv_radii[20];
|
|
182 int _blv_lights_xs[20];
|
|
183 int _blv_lights_ys[20];
|
|
184 int _blv_lights_light_dot_faces[20];
|
|
185 int field_240;
|
|
186 int field_244;
|
|
187 int field_248;
|
|
188 int field_24C;
|
|
189 int field_250;
|
|
190 int field_254;
|
|
191 int field_258;
|
|
192 int field_25C;
|
|
193 int field_260;
|
|
194 int field_264;
|
|
195 int field_268;
|
|
196 int field_26C;
|
|
197 int field_270;
|
|
198 int field_274;
|
|
199 int field_278;
|
|
200 int field_27C;
|
|
201 int field_280;
|
|
202 int field_284;
|
|
203 int field_288;
|
|
204 int field_28C;
|
|
205 int _blv_lights_zs[20];
|
|
206 float _blv_lights_rs[20];
|
|
207 float _blv_lights_gs[20];
|
|
208 float _blv_lights_bs[20];
|
|
209 char _blv_lights_smthngs[20];
|
|
210 int field_3E4;
|
|
211 int field_3E8;
|
|
212 int field_3EC;
|
|
213 int field_3F0;
|
|
214 int field_3F4;
|
|
215 int field_3F8;
|
|
216 };
|
|
217 #pragma pack(pop)
|
|
218
|
|
219 extern stru320 stru_F8AD28; // idb
|
|
220
|
|
221
|
|
222
|
|
223
|
|
224
|
|
225
|
|
226
|
|
227
|
|
228 /* 345 */
|
|
229 #pragma pack(push, 1)
|
|
230 struct stru315
|
|
231 {
|
|
232 int field_0;
|
|
233 int field_4;
|
|
234 int field_8;
|
|
235 int field_C;
|
|
236 int field_10;
|
|
237 int field_14;
|
|
238 int field_18;
|
|
239 int field_1C;
|
|
240 int field_20;
|
|
241 int field_24;
|
|
242 int field_28;
|
|
243 int field_2C;
|
|
244 int field_30;
|
|
245 unsigned __int16 *field_34_palette;
|
|
246 unsigned __int16 *pTextureLOD;
|
|
247 unsigned int *pDepthBuffer;
|
|
248 unsigned __int16 *pColorBuffer;
|
|
249 };
|
|
250 #pragma pack(pop)
|
|
251
|
|
252
|
|
253
|
|
254
|
|
255
|
|
256 /* 346 */
|
|
257 #pragma pack(push, 1)
|
|
258 struct stru316
|
|
259 {
|
|
260 int field_0;
|
|
261 int field_4;
|
|
262 int field_8;
|
|
263 int field_C;
|
|
264 int field_10;
|
|
265 int field_14;
|
|
266 int field_18;
|
|
267 int field_1C;
|
|
268 int field_20;
|
|
269 unsigned __int16 *field_24_palette;
|
|
270 };
|
|
271 #pragma pack(pop)
|
|
272
|
|
273
|
|
274
|
|
275
|
|
276
|
|
277
|
|
278 /* 134 */
|
|
279 #pragma pack(push, 1)
|
|
280 struct stru141
|
|
281 {
|
|
282 int _47050A(int a2);
|
|
283
|
|
284 int field_0;
|
|
285 int prolly_normal_d;
|
|
286 int field_8;
|
|
287 int field_C;
|
|
288 int field_10;
|
|
289 int field_14;
|
|
290 int field_18;
|
|
291 int field_1C;
|
|
292 int field_20;
|
|
293 int field_24;
|
|
294 Vec3_int_ normal;
|
|
295 Vec3_int_ field_34;
|
|
296 Vec3_int_ normal2;
|
|
297 int field_4C;
|
|
298 int field_50;
|
|
299 int field_54;
|
|
300 Vec3_int_ field_58;
|
|
301 int field_64;
|
|
302 int field_68;
|
|
303 int field_6C;
|
|
304 int field_70;
|
|
305 unsigned int uSectorID;
|
|
306 unsigned int uFaceID;
|
|
307 int field_7C;
|
|
308 int field_80;
|
|
309 int field_84;
|
|
310 int field_88;
|
|
311 int sMaxX;
|
|
312 int sMinX;
|
|
313 int sMaxY;
|
|
314 int sMinY;
|
|
315 int sMaxZ;
|
|
316 int sMinZ;
|
|
317 int field_A4;
|
|
318 };
|
|
319 #pragma pack(pop)
|
|
320 extern stru141 stru_721530;
|
|
321
|
|
322
|
|
323
|
|
324
|
|
325
|
|
326
|
|
327 /* 378 */
|
|
328 #pragma pack(push, 1)
|
|
329 struct stru337_stru0
|
|
330 {
|
|
331 int field_0;
|
|
332 int field_4;
|
|
333 int field_8;
|
|
334 int field_C;
|
|
335 int field_10;
|
|
336 };
|
|
337 #pragma pack(pop)
|
|
338
|
|
339
|
|
340
|
|
341 /* 377 */
|
|
342 #pragma pack(push, 1)
|
|
343 struct stru337
|
|
344 {
|
|
345 stru337_stru0 field_0;
|
|
346 int field_14;
|
|
347 int field_18;
|
|
348 int field_1C;
|
|
349 int field_20;
|
|
350 int field_24;
|
|
351 int field_28;
|
|
352 int field_2C;
|
|
353 int field_30;
|
|
354 stru337_stru0 field_34;
|
|
355 };
|
|
356 #pragma pack(pop)
|
|
357 extern stru337 stru_F81018;
|
|
358
|
|
359
|
|
360
|
|
361
|
|
362 /* 147 */
|
|
363 #pragma pack(push, 1)
|
|
364 struct stru154
|
|
365 {
|
|
366 //----- (0049B001) --------------------------------------------------------
|
|
367 inline stru154()
|
|
368 {}
|
|
369
|
|
370 //----- (0049B027) --------------------------------------------------------
|
|
371 inline ~stru154()
|
|
372 {}
|
|
373
|
|
374 int _49B04D(struct ODMFace *a2, struct BSPVertexBuffer *a3);
|
|
375 int _49B0C9(struct Vec3_float_ *pNormal, float a3);
|
|
376 int _49B13D(struct ODMFace *pFace, struct BSPVertexBuffer *pVertices, struct Vec3_float_ *a3, float *a4);
|
|
377
|
|
378
|
|
379 void (__thiscall ***vdestructor_ptr)(stru154 *, bool);
|
|
380 Vec3_float_ vNormal;
|
|
381 float field_10;
|
|
382 char field_14;
|
|
383 char field_15;
|
|
384 char field_16;
|
|
385 char field_17;
|
|
386 };
|
|
387 #pragma pack(pop)
|
|
388
|
|
389
|
|
390
|
|
391
|
|
392
|
|
393 /* 392 */
|
|
394 #pragma pack(push, 1)
|
|
395 struct stru352
|
|
396 {
|
|
397 int field_0;
|
|
398 int field_4;
|
|
399 int field_8;
|
|
400 int field_C;
|
|
401 int field_10;
|
|
402 int field_14;
|
|
403 int field_18;
|
|
404 int field_1C;
|
|
405 int field_20;
|
|
406 int field_24;
|
|
407 int field_28;
|
|
408 int field_2C;
|
|
409 int field_30;
|
|
410 int field_34;
|
|
411 };
|
|
412 #pragma pack(pop)
|
|
413 extern stru352 stru_F83B80[480]; |