41 #define BRUSH_PLANESIDE_FRONT 1
42 #define BRUSH_PLANESIDE_BACK 2
43 #define BRUSH_PLANESIDE_BOTH ( BRUSH_PLANESIDE_FRONT | BRUSH_PLANESIDE_BACK )
44 #define BRUSH_PLANESIDE_FACING 4
58 #define SFL_SPLIT 0x0001
59 #define SFL_BEVEL 0x0002
60 #define SFL_USED_SPLITTER 0x0004
61 #define SFL_TESTED_SPLITTER 0x0008
96 #define BFL_NO_VALID_SPLITTERS 0x0001
idBrushMap(const idStr &fileName, const idStr &ext)
void AddBevelsForAxialBox(void)
void Transform(const idVec3 &origin, const idMat3 &axis)
idList< idBrushSide * > sides
GLenum GLsizei GLenum format
void CreatePlaneList(idPlaneSet &planeList) const
int GetSavedPlaneSide(void) const
const idWinding * GetWinding(void) const
bool Subtract(const idBrush *b, idBrushList &list) const
bool RemoveSidesWithoutWinding(void)
float GetVolume(void) const
void ExpandForAxialBox(const idBounds &bounds)
idBrush * Copy(void) const
void Split(const idPlane &plane, int planeNum, idBrushList &frontList, idBrushList &backList, bool useBrushSavedPlaneSide=false)
int Split(const idPlane &splitPlane, idBrushSide **front, idBrushSide **back) const
void DisplayRealTimeString(char *string,...) id_attribute((format(printf
void SetEntityNum(int num)
void Chop(bool(*ChopAllowed)(idBrush *b1, idBrush *b2))
idBrushSide * Copy(void) const
idBrushSide * GetSide(int i) const
idBrush * Tail(void) const
void Delete(idBrush *brush)
idBrush * Head(void) const
bool FromWinding(const idWinding &w, const idPlane &windingPlane)
void RemoveFlag(int flag)
bool CreateWindings(void)
GLubyte GLubyte GLubyte GLubyte w
void Remove(idBrush *brush)
void AddToTail(idBrush *brush)
const idBounds & GetBounds(void) const
void SetPrimitiveNum(int num)
void SetContents(int contents)
void RemoveFlag(int flag)
void WriteBrushList(const idBrushList &brushList)
int GetContents(void) const
void WriteBrushMap(const idStr &fileName, const idStr &ext) const
void AddToFront(idBrush *brush)
void BoundBrush(const idBrush *original=NULL)
idBrush * Next(void) const
void SetTexture(const idStr &textureName)
void SetPlaneNum(int num)
idBrushList * Copy(void) const
const idPlane & GetPlane(void) const
void SetFlagOnFacingBrushSides(const idPlane &plane, int flag)
void Merge(bool(*MergeAllowed)(idBrush *b1, idBrush *b2))
bool FromBounds(const idBounds &bounds)
int GetNumSides(void) const
bool MergeAllowed(idBrush *b1, idBrush *b2)
void WriteBrush(const idBrush *brush)
idBounds GetBounds(void) const
bool FromSides(idList< idBrushSide * > &sideList)
bool TryMerge(const idBrush *brush, const idPlaneSet &planeList)
int Split(const idPlane &plane, int planeNum, idBrush **front, idBrush **back) const