doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
EditorBrush.h File Reference

Go to the source code of this file.

Functions

brush_t * Brush_Alloc ()
 
void Brush_Free (brush_t *b, bool bRemoveNode=true)
 
int Brush_MemorySize (brush_t *b)
 
void Brush_MakeSided (int sides)
 
void Brush_MakeSidedCone (int sides)
 
void Brush_Move (brush_t *b, const idVec3 move, bool bSnap=true, bool updateOrigin=true)
 
int Brush_MoveVertex (brush_t *b, const idVec3 &vertex, const idVec3 &delta, idVec3 &end, bool bSnap)
 
void Brush_ResetFaceOriginals (brush_t *b)
 
brush_t * Brush_Parse (const idVec3 origin)
 
face_t * Brush_Ray (idVec3 origin, idVec3 dir, brush_t *b, float *dist, bool testPrimitive=false)
 
void Brush_RemoveFromList (brush_t *b)
 
void Brush_AddToList (brush_t *b, brush_t *list)
 
void Brush_Build (brush_t *b, bool bSnap=true, bool bMarkMap=true, bool bConvert=false, bool updateLights=true)
 
void Brush_BuildWindings (brush_t *b, bool bSnap=true, bool keepOnPlaneWinding=false, bool updateLights=true, bool makeFacePlanes=true)
 
brush_t * Brush_Clone (brush_t *b)
 
brush_t * Brush_FullClone (brush_t *b)
 
brush_t * Brush_Create (idVec3 mins, idVec3 maxs, texdef_t *texdef)
 
void Brush_Draw (brush_t *b, bool bSelected=false)
 
void Brush_DrawXY (brush_t *b, int nViewType, bool bSelected=false, bool ignoreViewType=false)
 
void Brush_SplitBrushByFace (brush_t *in, face_t *f, brush_t **front, brush_t **back)
 
void Brush_SelectFaceForDragging (brush_t *b, face_t *f, bool shear)
 
void Brush_SetTexture (brush_t *b, texdef_t *texdef, brushprimit_texdef_t *brushprimit_texdef, bool bFitScale=false)
 
void Brush_SideSelect (brush_t *b, idVec3 origin, idVec3 dir, bool shear)
 
void Brush_SnapToGrid (brush_t *pb)
 
void Brush_Rotate (brush_t *b, idVec3 vAngle, idVec3 vOrigin, bool bBuild=true)
 
void Brush_MakeSidedSphere (int sides)
 
void Brush_Write (brush_t *b, FILE *f, const idVec3 &origin, bool newFormat)
 
void Brush_Write (brush_t *b, CMemFile *pMemFile, const idVec3 &origin, bool NewFormat)
 
void Brush_RemoveEmptyFaces (brush_t *b)
 
idWindingBrush_MakeFaceWinding (brush_t *b, face_t *face, bool keepOnPlaneWinding=false)
 
void Brush_SetTextureName (brush_t *b, const char *name)
 
void Brush_Print (brush_t *b)
 
void Brush_FitTexture (brush_t *b, float height, float width)
 
void Brush_SetEpair (brush_t *b, const char *pKey, const char *pValue)
 
const char * Brush_GetKeyValue (brush_t *b, const char *pKey)
 
const char * Brush_Name (brush_t *b)
 
void Brush_RebuildBrush (brush_t *b, idVec3 vMins, idVec3 vMaxs, bool patch=true)
 
void Brush_GetBounds (brush_t *b, idBounds &bo)
 
face_t * Face_Alloc (void)
 
void Face_Free (face_t *f)
 
face_t * Face_Clone (face_t *f)
 
void Face_MakePlane (face_t *f)
 
void Face_Draw (face_t *face)
 
void Face_TextureVectors (face_t *f, float STfromXYZ[2][4])
 
void Face_FitTexture (face_t *face, float height, float width)
 
void SetFaceTexdef (brush_t *b, face_t *f, texdef_t *texdef, brushprimit_texdef_t *brushprimit_texdef, bool bFitScale=false)
 
int AddPlanept (idVec3 *f)
 

Function Documentation

int AddPlanept ( idVec3 f)

Definition at line 2841 of file EditorBrush.cpp.

void Brush_AddToList ( brush_t *  b,
brush_t *  list 
)

Definition at line 2674 of file EditorBrush.cpp.

brush_t* Brush_Alloc ( )

Definition at line 117 of file EditorBrush.cpp.

void Brush_Build ( brush_t *  b,
bool  bSnap = true,
bool  bMarkMap = true,
bool  bConvert = false,
bool  updateLights = true 
)

Definition at line 743 of file EditorBrush.cpp.

void Brush_BuildWindings ( brush_t *  b,
bool  bSnap = true,
bool  keepOnPlaneWinding = false,
bool  updateLights = true,
bool  makeFacePlanes = true 
)

Definition at line 3179 of file EditorBrush.cpp.

brush_t* Brush_Clone ( brush_t *  b)

Definition at line 2353 of file EditorBrush.cpp.

brush_t* Brush_Create ( idVec3  mins,
idVec3  maxs,
texdef_t *  texdef 
)

Definition at line 1972 of file EditorBrush.cpp.

void Brush_Draw ( brush_t *  b,
bool  bSelected = false 
)

Definition at line 4393 of file EditorBrush.cpp.

void Brush_DrawXY ( brush_t *  b,
int  nViewType,
bool  bSelected = false,
bool  ignoreViewType = false 
)

Definition at line 4670 of file EditorBrush.cpp.

void Brush_FitTexture ( brush_t *  b,
float  height,
float  width 
)

Definition at line 5197 of file EditorBrush.cpp.

void Brush_Free ( brush_t *  b,
bool  bRemoveNode = true 
)

Definition at line 2278 of file EditorBrush.cpp.

brush_t* Brush_FullClone ( brush_t *  b)

Definition at line 2398 of file EditorBrush.cpp.

void Brush_GetBounds ( brush_t *  b,
idBounds bo 
)

Definition at line 5204 of file EditorBrush.cpp.

const char* Brush_GetKeyValue ( brush_t *  b,
const char *  pKey 
)

Definition at line 1601 of file EditorBrush.cpp.

idWinding* Brush_MakeFaceWinding ( brush_t *  b,
face_t *  face,
bool  keepOnPlaneWinding = false 
)

Definition at line 686 of file EditorBrush.cpp.

void Brush_MakeSided ( int  sides)

Definition at line 2137 of file EditorBrush.cpp.

void Brush_MakeSidedCone ( int  sides)

Definition at line 4986 of file EditorBrush.cpp.

void Brush_MakeSidedSphere ( int  sides)

Definition at line 5080 of file EditorBrush.cpp.

int Brush_MemorySize ( brush_t *  b)

Definition at line 2331 of file EditorBrush.cpp.

void Brush_Move ( brush_t *  b,
const idVec3  move,
bool  bSnap = true,
bool  updateOrigin = true 
)

Definition at line 4846 of file EditorBrush.cpp.

int Brush_MoveVertex ( brush_t *  b,
const idVec3 vertex,
const idVec3 delta,
idVec3 end,
bool  bSnap 
)

Definition at line 979 of file EditorBrush.cpp.

const char* Brush_Name ( brush_t *  b)

Definition at line 100 of file EditorBrush.cpp.

brush_t* Brush_Parse ( const idVec3  origin)

Definition at line 1390 of file EditorBrush.cpp.

void Brush_Print ( brush_t *  b)

Definition at line 4969 of file EditorBrush.cpp.

face_t* Brush_Ray ( idVec3  origin,
idVec3  dir,
brush_t *  b,
float dist,
bool  testPrimitive = false 
)

Definition at line 2589 of file EditorBrush.cpp.

void Brush_RebuildBrush ( brush_t *  b,
idVec3  vMins,
idVec3  vMaxs,
bool  patch = true 
)
void Brush_RemoveEmptyFaces ( brush_t *  b)

Definition at line 3275 of file EditorBrush.cpp.

void Brush_RemoveFromList ( brush_t *  b)

Definition at line 2698 of file EditorBrush.cpp.

void Brush_ResetFaceOriginals ( brush_t *  b)

Definition at line 1373 of file EditorBrush.cpp.

void Brush_Rotate ( brush_t *  b,
idVec3  vAngle,
idVec3  vOrigin,
bool  bBuild = true 
)

Definition at line 3395 of file EditorBrush.cpp.

void Brush_SelectFaceForDragging ( brush_t *  b,
face_t *  f,
bool  shear 
)

last point on the winding

Definition at line 2888 of file EditorBrush.cpp.

void Brush_SetEpair ( brush_t *  b,
const char *  pKey,
const char *  pValue 
)

Definition at line 1582 of file EditorBrush.cpp.

void Brush_SetTexture ( brush_t *  b,
texdef_t *  texdef,
brushprimit_texdef_t *  brushprimit_texdef,
bool  bFitScale = false 
)

Definition at line 2769 of file EditorBrush.cpp.

void Brush_SetTextureName ( brush_t *  b,
const char *  name 
)

Definition at line 2787 of file EditorBrush.cpp.

void Brush_SideSelect ( brush_t *  b,
idVec3  origin,
idVec3  dir,
bool  shear 
)

Definition at line 3002 of file EditorBrush.cpp.

void Brush_SnapToGrid ( brush_t *  pb)

Definition at line 3298 of file EditorBrush.cpp.

void Brush_SplitBrushByFace ( brush_t *  in,
face_t *  f,
brush_t **  front,
brush_t **  back 
)

Definition at line 785 of file EditorBrush.cpp.

void Brush_Write ( brush_t *  b,
FILE *  f,
const idVec3 origin,
bool  newFormat 
)

Definition at line 1624 of file EditorBrush.cpp.

void Brush_Write ( brush_t *  b,
CMemFile *  pMemFile,
const idVec3 origin,
bool  NewFormat 
)

Definition at line 1807 of file EditorBrush.cpp.

face_t* Face_Alloc ( void  )

Definition at line 251 of file EditorBrush.cpp.

face_t* Face_Clone ( face_t *  f)

Definition at line 285 of file EditorBrush.cpp.

void Face_Draw ( face_t *  face)

Definition at line 4527 of file EditorBrush.cpp.

void Face_FitTexture ( face_t *  face,
float  height,
float  width 
)

Definition at line 5148 of file EditorBrush.cpp.

void Face_Free ( face_t *  f)

Definition at line 268 of file EditorBrush.cpp.

void Face_MakePlane ( face_t *  f)

Definition at line 525 of file EditorBrush.cpp.

void Face_TextureVectors ( face_t *  f,
float  STfromXYZ[2][4] 
)

Definition at line 418 of file EditorBrush.cpp.

void SetFaceTexdef ( brush_t *  b,
face_t *  f,
texdef_t *  texdef,
brushprimit_texdef_t *  brushprimit_texdef,
bool  bFitScale = false 
)

Definition at line 2727 of file EditorBrush.cpp.