annotate BSPModel.h @ 170:f089d88b6739

PopupWindow(work)
author Ritor1
date Thu, 13 Dec 2012 17:22:39 +0600
parents 8b8875f5b359
children
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
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 struct BSPNode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 __int16 uFront;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 __int16 uBack;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 __int16 uCoplanarOffset;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 __int16 uCoplanarSize;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 struct BSPVertexBuffer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 int uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 Vec3_int_ *pVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 /* 80 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 struct BSPModel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 void Release();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 char pModelName[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 char pModelName2[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 int field_40;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 struct BSPVertexBuffer pVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 unsigned int uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 unsigned int uNumConvexFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 struct ODMFace *pFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 unsigned __int16 *pFacesOrdering;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 unsigned int uNumNodes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 struct BSPNode *pNodes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 unsigned int uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 int sCenterX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 int sCenterY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 int sMinX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 int sMinY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 int sMinZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 int sMaxX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 int sMaxY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 int sMaxZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 int sSomeOtherMinX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 int sSomeOtherMinY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 int sSomeOtherMinZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 int sSomeOtherMaxX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 int sSomeOtherMaxY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 int sSomeOtherMaxZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 Vec3_int_ vBoundingCenter;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 int sBoundingRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 #pragma pack(pop)