diff BSPModel.h @ 0:9c0607679772

init
author Ritor1
date Sat, 12 Jan 2013 09:45:18 +0600
parents
children a5e587c8e30e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BSPModel.h	Sat Jan 12 09:45:18 2013 +0600
@@ -0,0 +1,62 @@
+#pragma once
+#include "VectorTypes.h"
+
+
+#pragma pack(push, 1)
+struct BSPNode
+{
+  __int16 uFront;
+  __int16 uBack;
+  __int16 uCoplanarOffset;
+  __int16 uCoplanarSize;
+};
+#pragma pack(pop)
+
+
+#pragma pack(push, 1)
+struct BSPVertexBuffer
+{
+  int uNumVertices;
+  Vec3_int_ *pVertices;
+};
+#pragma pack(pop)
+
+
+
+/*   80 */
+#pragma pack(push, 1)
+struct BSPModel
+{
+  void Release();
+
+
+  char pModelName[32];
+  char pModelName2[32];
+  int field_40;
+  struct BSPVertexBuffer pVertices;
+  unsigned int uNumFaces;
+  unsigned int uNumConvexFaces;
+  struct ODMFace *pFaces;
+  unsigned __int16 *pFacesOrdering;
+  unsigned int uNumNodes;
+  struct BSPNode *pNodes;
+  unsigned int uNumDecorations;
+  int sCenterX;
+  int sCenterY;
+  Vec3_int_ vPosition;
+  int sMinX;
+  int sMinY;
+  int sMinZ;
+  int sMaxX;
+  int sMaxY;
+  int sMaxZ;
+  int sSomeOtherMinX;
+  int sSomeOtherMinY;
+  int sSomeOtherMinZ;
+  int sSomeOtherMaxX;
+  int sSomeOtherMaxY;
+  int sSomeOtherMaxZ;
+  Vec3_int_ vBoundingCenter;
+  int sBoundingRadius;
+};
+#pragma pack(pop)