]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/DShape.h
reformat code! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / contrib / bobtoolz / DShape.h
index 32c659c7830d65e4c36c06301e17d1e9e8916672..1a062863c99ff97786e6f8812fa428be8c0fd009 100644 (file)
 #if !defined( AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_ )
 #define AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_
 
-#include "DMap.h"   // Added by ClassView
-#include "StdAfx.h" // Added by ClassView
-
 #if _MSC_VER > 1000
 #pragma once
 #endif // _MSC_VER > 1000
 
+#include <stdlib.h>
+#include "mathlib.h"
+#include "DMap.h"
+
+class DBrush;
+
+class DEntity;
+
 // defines for polygon stuff
-#define MAX_POLYGON_FACES   128
+const int MAX_POLYGON_FACES = 128;
 
 extern bool bFacesAll[];
 
-class DShape
-{
+class DShape {
 public:
-bool BuildPit( vec3_t min, vec3_t max );
-void BuildBorderedPrism( vec3_t min, vec3_t max, int nSides, int nBorder, bool bAlignTop );
-void BuildInversePrism( vec3_t min, vec3_t max, int nSides, bool bAlignTop );
-void BuildRegularPrism( vec3_t min, vec3_t max, int nSides, bool bAlignTop );
+    bool BuildPit(vec3_t min, vec3_t max);
+
+    void BuildBorderedPrism(vec3_t min, vec3_t max, int nSides, int nBorder, bool bAlignTop);
+
+    void BuildInversePrism(vec3_t min, vec3_t max, int nSides, bool bAlignTop);
+
+    void BuildRegularPrism(vec3_t min, vec3_t max, int nSides, bool bAlignTop);
+
+    int m_nNextBrush;
+
+    static DBrush *GetBoundingCube_Ext(vec3_t min, vec3_t max, const char *textureName, bool *bUseFaces = bFacesAll,
+                                       bool detail = false);
+
+    DShape();
 
-int m_nNextBrush;
-static DBrush* GetBoundingCube_Ext( vec3_t min, vec3_t max, const char* textureName, bool* bUseFaces = bFacesAll, bool detail = false );
+    virtual ~DShape();
 
-DShape();
-virtual ~DShape();
+    void Commit();
 
-void Commit();
 private:
-DBrush* GetBoundingCube( vec3_t min, vec3_t max, const char* textureName, DEntity* ent = NULL, bool* bUseFaces = bFacesAll );
+    DBrush *
+    GetBoundingCube(vec3_t min, vec3_t max, const char *textureName, DEntity *ent = NULL, bool *bUseFaces = bFacesAll);
 
-DMap m_Container;
+    DMap m_Container;
 };
 
 #endif // !defined(AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_)