annotate Indoor.h @ 44:916bec351934

22.10.12(pCurrentScreen)
author Ritor1
date Mon, 22 Oct 2012 17:28:15 +0600
parents e62134245ab0
children fde5c5acb66e
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "VectorTypes.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 #include "IndoorCameraD3D.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 /* 319 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 enum LEVEL_TYPE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
3
540178ef9b18 Main menu functionality
Nomad
parents: 0
diff changeset
11 LEVEL_null = 0,
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 LEVEL_Indoor = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 LEVEL_Outdoor = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 extern LEVEL_TYPE uCurrentlyLoadedLevelType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 /* 74 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 struct LevelDecoration
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 LevelDecoration();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 int GetGlobalEvent();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 int IsInteractive();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 bool _47A825();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 unsigned __int16 uDecorationDescID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 struct Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 int field_10_y_rot;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 __int16 uCog;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 __int16 field_16_event_id;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 __int16 field_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 __int16 field_1A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 extern LevelDecoration pLevelDecorations[3000];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 extern size_t uNumLevelDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 extern LevelDecoration *_5C3420_pDecoration;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 /* 86 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 struct SpawnPointMM6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 unsigned __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 unsigned __int16 uKind;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 unsigned __int16 uIndex;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 unsigned __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 /* 102 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 struct SpawnPointMM7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 //----- (00448DD6) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 SpawnPointMM7()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 uRadius = 32;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 uAttributes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 uIndex = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 uKind = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 uGroup = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 unsigned __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 unsigned __int16 uKind;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 unsigned __int16 uIndex;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 unsigned __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 unsigned int uGroup;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 struct DDM_DLV_Header
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 //----- (00462607) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 inline DDM_DLV_Header()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 this->uLastRepawnDay = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 this->uNumRespawns = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 this->uReputation = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 this->field_C_alert = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 this->uNumFacesInBModels = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 this->uNumDecorations = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 this->uNumBModels = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 int uNumRespawns;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 int uLastRepawnDay;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 int uReputation;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 int field_C_alert;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 unsigned int uNumFacesInBModels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 unsigned int uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 unsigned int uNumBModels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 int field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 int field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 int field_24;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 /* 291 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 enum PolygonType : __int8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 POLYGON_Invalid = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 POLYGON_VerticalWall = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 POLYGON_unk = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 POLYGON_Floor = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 POLYGON_InBetweenFloorAndWall = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 POLYGON_Ceiling = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 POLYGON_InBetweenCeilingAndWall = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 /* 90 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 struct BLVHeader
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 char field_0[104];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 unsigned int uFaces_fdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 unsigned int uSector_rdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 unsigned int uSector_lrdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 unsigned int uDoors_ddata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 char field_78[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 /* 96 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 struct BLVSectorMM8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 int dword_000074;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 /* 97 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 struct BLVLightMM6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 Vec3_short_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 unsigned __int16 uBrightness;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 /* 98 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 struct BLVLightMM7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 struct Vec3_short_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183 __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184 char uRed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 char uGreen;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 char uBlue;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 char uType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 __int16 uAtributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 __int16 uBrightness;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 /* 99 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 struct BLVLightMM8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197 int uID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200
29
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
201
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
202
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 /* 100 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 struct BLVDoor
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 {
29
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
207 enum State: unsigned __int16
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
208 {
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
209 Closed = 0,
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
210 Opening = 1,
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
211 Open = 2,
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
212 Closing = 3
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
213 };
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
214
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 unsigned int uDoorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 unsigned int uTimeSinceTriggered;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 Vec3_int_ vDirection;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 int uMoveLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 int uOpenSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 int uCloseSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 unsigned __int16 *pVertexIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 unsigned __int16 *pFaceIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 unsigned __int16 *pSectorIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 __int16 *pDeltaUs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 __int16 *pDeltaVs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 unsigned __int16 *pXOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 unsigned __int16 *pYOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 unsigned __int16 *pZOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 unsigned __int16 uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 unsigned __int16 uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 __int16 field_48;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 unsigned __int16 uNumOffsets;
29
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
234 State uState;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 __int16 field_4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 /* 101 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241 struct BLVMapVertex
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243 unsigned __int16 uVertex1ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 unsigned __int16 uVertex2ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 unsigned __int16 uFace1ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 unsigned __int16 uFace2ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 __int16 sZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 unsigned __int16 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 /* 93 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 struct BLVFace
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 //----- (0046ED02) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259 inline BLVFace()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 this->uNumVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 this->uAttributes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 this->uFaceExtraID = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264 this->pVertexIDs = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 this->pZInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 this->pYInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 this->pXInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 char _get_normals(Vec3_int_ *a2, Vec3_int_ *a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 struct Texture *GetTexture();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 void FromODM(struct ODMFace *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 struct Plane_float_ pFacePlane;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 struct Plane_int_ pFacePlane_old;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 int zCalc1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278 int zCalc2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 int zCalc3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281 unsigned __int16 *pVertexIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282 unsigned __int16 *pXInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283 unsigned __int16 *pYInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 unsigned __int16 *pZInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 unsigned __int16 *pVertexUIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286 unsigned __int16 *pVertexVIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 unsigned __int16 uFaceExtraID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288 unsigned __int16 uBitmapID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289 unsigned __int16 uSectorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 __int16 uBackSectorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 struct BBox_short_ pBounding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 PolygonType uPolygonType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 unsigned __int8 uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294 char field_5E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 char field_5F;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 /* 94 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
300 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
301 struct BLVFaceExtra
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
302 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
303 int HasEventint();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
304
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 __int16 field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 __int16 field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 __int16 field_6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 __int16 field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 __int16 field_A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312 unsigned __int16 uAdditionalBitmapID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313 __int16 field_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 __int16 field_12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315 __int16 sTextureDeltaU;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 __int16 sTextureDeltaV;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317 __int16 sCogNumber;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318 unsigned __int16 uEventID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 __int16 field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322 __int16 field_22;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 /* 95 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328 struct BLVSector
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330 int field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 __int16 field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
332 __int16 field_6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 unsigned __int16 *pFloors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335 __int16 field_E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
336 unsigned __int16 *pWalls;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
337 __int16 field_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
338 __int16 field_16;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339 unsigned __int16 *pCeilings;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
340 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
341 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
342 unsigned __int16 *pFluids;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
343 __int16 uNumPortals;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
344 __int16 field_26;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
345 unsigned __int16 *pPortals;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
346 __int16 field_2C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
347 __int16 uNumNonBSPFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
348 unsigned __int16 *pFaceIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
349 __int16 uNumCylinderFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
350 __int16 field_36;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
351 int pCylinderFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
352 __int16 field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
353 __int16 field_3E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
354 unsigned __int16 *pCogs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
355 unsigned __int16 uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
356 __int16 field_46;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
357 unsigned __int16 *pDecorationIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
358 __int16 field_4C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
359 __int16 field_4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
360 unsigned __int16 *pMarkers;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
361 __int16 uNumLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
362 __int16 field_56;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
363 BLVLightMM7 *pLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
364 __int16 uWaterLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
365 __int16 uMistLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
366 __int16 uLightDistanceMultiplier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
367 __int16 uMinAmbientLightLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
368 __int16 uFirstBSPNode;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
369 __int16 exit_tag;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
370 BBox_short_ pBounding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
371 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
372 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
373
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
374
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
375 #pragma pack(push, 1)
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
376 struct BLVMapVertices
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
377 {
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
378 uint uNumVertices;
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
379 BLVMapVertex pVertices[1];
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
380 };
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
381 #pragma pack(pop)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
382
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
383
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
384
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
385 #pragma pack(push, 1)
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
386 struct IndoorLocation_stru1
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
387 {
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
388 unsigned __int64 uLastVisitDay;
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
389 char field_2F4[48];
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
390 };
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
391 #pragma pack(pop)
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
392
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
393
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
394
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
395 /* 89 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
396 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
397 struct IndoorLocation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
398 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
399 //----- (00462592) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
400 inline IndoorLocation()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
401 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
402 bLoaded = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
403 ptr_0002B8_sector_lrdata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
404 ptr_0002B4_doors_ddata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
405 ptr_0002B0_sector_rdata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
406 ptr_2AC = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
407 pVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
408 pFaces = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
409 pFaceExtras = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
410 pSectors = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
411 pLights = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
412 pDoors = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
413 pNodes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
414 pMapVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
415 uNumSpawnPoints = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
416 pSpawnPoints = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
417 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
418
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
419 int GetSector(int sX, int sY, int sZ);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
420 void Release();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
421 int Alloc();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
422 bool Load(char *pFilename, int a3, size_t i, char *pDest);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
423 void Draw();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
424 void ToggleLight(unsigned int uLightID, unsigned int bToggle);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
425
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
426 static unsigned int GetLocationIndex(const char *Str1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
427 static void ExecDraw(char a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
428 static void ExecDraw_sub1(unsigned int uFaceID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
429 static void ExecDraw_sub0(unsigned int uFaceID, struct IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, struct RenderVertexSoft *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
430
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
431 char pFilename[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
432 char field_20[48];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
433 unsigned int bLoaded;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
434 char field_54[404];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
435 struct BLVHeader blv;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
436 unsigned int uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
437 struct Vec3_short_ *pVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
438 unsigned int uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
439 struct BLVFace *pFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
440 unsigned int uNumFaceExtras;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
441 struct BLVFaceExtra *pFaceExtras;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
442 int uNumSectors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
443 struct BLVSector *pSectors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
444 int uNumLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
445 struct BLVLightMM7 *pLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
446 int uNumDoors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
447 struct BLVDoor *pDoors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
448 unsigned int uNumNodes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
449 struct BSPNode *pNodes;
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
450 BLVMapVertices *pMapVertices;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
451 unsigned __int16 *ptr_2AC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
452 unsigned __int16 *ptr_0002B0_sector_rdata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
453 unsigned __int16 *ptr_0002B4_doors_ddata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
454 unsigned __int16 *ptr_0002B8_sector_lrdata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
455 unsigned int uNumSpawnPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
456 struct SpawnPointMM7 *pSpawnPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
457 struct DDM_DLV_Header dlv;
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
458 IndoorLocation_stru1 stru1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
459 char _visible_outlines[876];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
460 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
461 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
462
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
463 extern IndoorLocation *pIndoor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
464
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
465
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
466
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
467
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
468
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
469
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
470
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
471
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
472
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
473
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
474
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
475
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
476 /* 263 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
477 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
478 struct IndoorLocation_drawstru
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
479 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
480 int field_0_timer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
481 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
482 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
483 int sRotationY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
484 int sRotationX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
485 int field_1C_mb_fov;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
486 unsigned __int16 *pRenderTarget;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
487 unsigned int uTargetWidth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
488 unsigned int uTargetHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
489 unsigned int uViewportX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
490 unsigned int uViewportY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
491 unsigned int uViewportZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
492 unsigned int uViewportW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
493 int field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
494 int *pTargetZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
495 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
496 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
497
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
498
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
499
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
500
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
501
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
502
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
503
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
504
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
505
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
506
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
507
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
508
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
509 /* 162 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
510 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
511 struct BLVRenderParams
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
512 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
513 int Set(struct IndoorLocation_drawstru *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
514
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
515 int field_0_timer_;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
516 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
517 Vec3_int_ vPartyPos;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
518 int sPartyRotY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
519 int sPartyRotX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
520 int uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
521 int sCosineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
522 int sSineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
523 int sCosineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
524 int sSineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
525 float fCosineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
526 float fSineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
527 float fCosineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
528 float fSineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
529 int field_40;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
530 float field_44;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
531 unsigned __int16 *pRenderTarget;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
532 unsigned int uTargetWidth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
533 unsigned int uTargetHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
534 unsigned int uViewportX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
535 unsigned int uViewportY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
536 unsigned int uViewportZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
537 unsigned int uViewportW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
538 int field_64;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
539 int *pTargetZBuffer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
540 int uViewportHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
541 int field_70;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
542 int uViewportCenterX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
543 int uViewportCenterY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
544 struct stru170_stru2 *field_7C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
545 int field_80;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
546 int field_84;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
547 int field_88;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
548 int field_8C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
549 int field_90;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
550 int field_94;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
551 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
552 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
553
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
554 extern struct BLVRenderParams *pBLVRenderParams;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
555
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
556
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
557
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
558
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
559
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
560 #include "Indoor_stuff.h"