]> de.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 31c66e13034dbe2292fa2451bbdd4a37d929914c..1a062863c99ff97786e6f8812fa428be8c0fd009 100644 (file)
@@ -31,7 +31,9 @@
 #include <stdlib.h>
 #include "mathlib.h"
 #include "DMap.h"
+
 class DBrush;
+
 class DEntity;
 
 // defines for polygon stuff
@@ -39,25 +41,32 @@ 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_)