annotate BSPModel.h @ 2435:f1d8eba1a9aa

Merge
author a.parshin
date Wed, 23 Jul 2014 22:09:56 +0300
parents 33e360a9b4bf
children
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include "VectorTypes.h"
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5 #pragma pack(push, 1)
711
a5e587c8e30e some cleaning
Gloval
parents: 0
diff changeset
6 struct BSPNode //8
0
Ritor1
parents:
diff changeset
7 {
Ritor1
parents:
diff changeset
8 __int16 uFront;
Ritor1
parents:
diff changeset
9 __int16 uBack;
Ritor1
parents:
diff changeset
10 __int16 uCoplanarOffset;
Ritor1
parents:
diff changeset
11 __int16 uCoplanarSize;
Ritor1
parents:
diff changeset
12 };
Ritor1
parents:
diff changeset
13 #pragma pack(pop)
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15
Ritor1
parents:
diff changeset
16 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
17 struct BSPVertexBuffer
Ritor1
parents:
diff changeset
18 {
Ritor1
parents:
diff changeset
19 int uNumVertices;
Ritor1
parents:
diff changeset
20 Vec3_int_ *pVertices;
Ritor1
parents:
diff changeset
21 };
Ritor1
parents:
diff changeset
22 #pragma pack(pop)
Ritor1
parents:
diff changeset
23
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26 /* 80 */
Ritor1
parents:
diff changeset
27 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
28 struct BSPModel
Ritor1
parents:
diff changeset
29 {
Ritor1
parents:
diff changeset
30 void Release();
Ritor1
parents:
diff changeset
31
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33 char pModelName[32];
Ritor1
parents:
diff changeset
34 char pModelName2[32];
Ritor1
parents:
diff changeset
35 int field_40;
Ritor1
parents:
diff changeset
36 struct BSPVertexBuffer pVertices;
1267
33e360a9b4bf some fixes in normals
Gloval
parents: 711
diff changeset
37 int uNumFaces;
0
Ritor1
parents:
diff changeset
38 unsigned int uNumConvexFaces;
Ritor1
parents:
diff changeset
39 struct ODMFace *pFaces;
Ritor1
parents:
diff changeset
40 unsigned __int16 *pFacesOrdering;
Ritor1
parents:
diff changeset
41 unsigned int uNumNodes;
Ritor1
parents:
diff changeset
42 struct BSPNode *pNodes;
Ritor1
parents:
diff changeset
43 unsigned int uNumDecorations;
Ritor1
parents:
diff changeset
44 int sCenterX;
Ritor1
parents:
diff changeset
45 int sCenterY;
Ritor1
parents:
diff changeset
46 Vec3_int_ vPosition;
Ritor1
parents:
diff changeset
47 int sMinX;
Ritor1
parents:
diff changeset
48 int sMinY;
Ritor1
parents:
diff changeset
49 int sMinZ;
Ritor1
parents:
diff changeset
50 int sMaxX;
Ritor1
parents:
diff changeset
51 int sMaxY;
Ritor1
parents:
diff changeset
52 int sMaxZ;
Ritor1
parents:
diff changeset
53 int sSomeOtherMinX;
Ritor1
parents:
diff changeset
54 int sSomeOtherMinY;
Ritor1
parents:
diff changeset
55 int sSomeOtherMinZ;
Ritor1
parents:
diff changeset
56 int sSomeOtherMaxX;
Ritor1
parents:
diff changeset
57 int sSomeOtherMaxY;
Ritor1
parents:
diff changeset
58 int sSomeOtherMaxZ;
Ritor1
parents:
diff changeset
59 Vec3_int_ vBoundingCenter;
Ritor1
parents:
diff changeset
60 int sBoundingRadius;
Ritor1
parents:
diff changeset
61 };
Ritor1
parents:
diff changeset
62 #pragma pack(pop)