doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
EditorBrushPrimit.cpp File Reference
#include "../../idlib/precompiled.h"
#include "qe3.h"

Go to the source code of this file.

Classes

class  idVec3D
 

Macros

#define ZERO_EPSILON   1.0E-6
 

Functions

double SarrusDet (idVec3D a, idVec3D b, idVec3D c)
 
void ComputeAxisBase (idVec3 &normal, idVec3D &texS, idVec3D &texT)
 
void FaceToBrushPrimitFace (face_t *f)
 
void EmitBrushPrimitTextureCoordinates (face_t *f, idWinding *w, patchMesh_t *patch)
 
void BrushPrimit_Parse (brush_t *b, bool newFormat, const idVec3 origin)
 
void TexMatToFakeTexCoords (float texMat[2][3], float shift[2], float *rot, float scale[2])
 
void FakeTexCoordsToTexMat (float shift[2], float rot, float scale[2], float texMat[2][3])
 
void ConvertTexMatWithQTexture (float texMat1[2][3], const idMaterial *qtex1, float texMat2[2][3], const idMaterial *qtex2, float sScale=1.0, float tScale=1.0)
 
void ConvertTexMatWithQTexture (brushprimit_texdef_t *texMat1, const idMaterial *qtex1, brushprimit_texdef_t *texMat2, const idMaterial *qtex2, float sScale, float tScale)
 
void Face_MoveTexture_BrushPrimit (face_t *f, idVec3 delta)
 
void Select_ShiftTexture_BrushPrimit (face_t *f, float x, float y, bool autoAdjust)
 
void ComputeBest2DVector (idVec3 v, idVec3 X, idVec3 Y, int &x, int &y)
 
void MatrixForPoints (idVec3D M[3], idVec3D D[2], brushprimit_texdef_t *T)
 
void Face_FitTexture_BrushPrimit (face_t *f, idVec3 mins, idVec3 maxs, float height, float width)
 
void Face_ScaleTexture_BrushPrimit (face_t *face, float sS, float sT)
 
void Face_RotateTexture_BrushPrimit (face_t *face, float amount, idVec3 origin)
 
void TextureLockTransformation_BrushPrimit (face_t *f)
 
void RotateFaceTexture_BrushPrimit (face_t *f, int nAxis, float fDeg, idVec3 vOrigin)
 
void ApplyMatrix_BrushPrimit (face_t *f, idMat3 matrix, idVec3 origin)
 
void BPMatMul (float A[2][3], float B[2][3], float C[2][3])
 
void BPMatDump (float A[2][3])
 
void BPMatRotate (float A[2][3], float theta)
 
void Face_GetScale_BrushPrimit (face_t *face, float *s, float *t, float *rot)
 
void Face_SetExplicitScale_BrushPrimit (face_t *face, float s, float t)
 
void Face_FlipTexture_BrushPrimit (face_t *f, bool y)
 
void Brush_FlipTexture_BrushPrimit (brush_t *b, bool y)
 
void Face_SetAxialScale_BrushPrimit (face_t *face, bool y)
 

Variables

bool txlock_bRotation
 
int txl_nAxis
 
double txl_fDeg
 
idVec3D txl_vOrigin
 
idVec3D txl_matrix [3]
 
idVec3D txl_origin
 

Macro Definition Documentation

#define ZERO_EPSILON   1.0E-6

Definition at line 34 of file EditorBrushPrimit.cpp.

Function Documentation

void ApplyMatrix_BrushPrimit ( face_t *  f,
idMat3  matrix,
idVec3  origin 
)

Definition at line 926 of file EditorBrushPrimit.cpp.

void BPMatDump ( float  A[2][3])

Definition at line 954 of file EditorBrushPrimit.cpp.

void BPMatMul ( float  A[2][3],
float  B[2][3],
float  C[2][3] 
)

Definition at line 941 of file EditorBrushPrimit.cpp.

void BPMatRotate ( float  A[2][3],
float  theta 
)

Definition at line 962 of file EditorBrushPrimit.cpp.

void Brush_FlipTexture_BrushPrimit ( brush_t *  b,
bool  y 
)

Definition at line 1138 of file EditorBrushPrimit.cpp.

void BrushPrimit_Parse ( brush_t *  b,
bool  newFormat,
const idVec3  origin 
)

Definition at line 212 of file EditorBrushPrimit.cpp.

void ComputeAxisBase ( idVec3 normal,
idVec3D texS,
idVec3D texT 
)

Definition at line 64 of file EditorBrushPrimit.cpp.

void ComputeBest2DVector ( idVec3  v,
idVec3  X,
idVec3  Y,
int x,
int y 
)

Definition at line 531 of file EditorBrushPrimit.cpp.

void ConvertTexMatWithQTexture ( float  texMat1[2][3],
const idMaterial qtex1,
float  texMat2[2][3],
const idMaterial qtex2,
float  sScale = 1.0,
float  tScale = 1.0 
)

Definition at line 431 of file EditorBrushPrimit.cpp.

void ConvertTexMatWithQTexture ( brushprimit_texdef_t *  texMat1,
const idMaterial qtex1,
brushprimit_texdef_t *  texMat2,
const idMaterial qtex2,
float  sScale,
float  tScale 
)

Definition at line 449 of file EditorBrushPrimit.cpp.

void EmitBrushPrimitTextureCoordinates ( face_t *  f,
idWinding w,
patchMesh_t *  patch 
)

Definition at line 160 of file EditorBrushPrimit.cpp.

void Face_FitTexture_BrushPrimit ( face_t *  f,
idVec3  mins,
idVec3  maxs,
float  height,
float  width 
)

Definition at line 609 of file EditorBrushPrimit.cpp.

void Face_FlipTexture_BrushPrimit ( face_t *  f,
bool  y 
)

Definition at line 1101 of file EditorBrushPrimit.cpp.

void Face_GetScale_BrushPrimit ( face_t *  face,
float s,
float t,
float rot 
)

Definition at line 974 of file EditorBrushPrimit.cpp.

void Face_MoveTexture_BrushPrimit ( face_t *  f,
idVec3  delta 
)

Definition at line 459 of file EditorBrushPrimit.cpp.

void Face_RotateTexture_BrushPrimit ( face_t *  face,
float  amount,
idVec3  origin 
)

Definition at line 749 of file EditorBrushPrimit.cpp.

void Face_ScaleTexture_BrushPrimit ( face_t *  face,
float  sS,
float  sT 
)

Definition at line 732 of file EditorBrushPrimit.cpp.

void Face_SetAxialScale_BrushPrimit ( face_t *  face,
bool  y 
)

Definition at line 1144 of file EditorBrushPrimit.cpp.

void Face_SetExplicitScale_BrushPrimit ( face_t *  face,
float  s,
float  t 
)

Definition at line 1035 of file EditorBrushPrimit.cpp.

void FaceToBrushPrimitFace ( face_t *  f)

Definition at line 98 of file EditorBrushPrimit.cpp.

void FakeTexCoordsToTexMat ( float  shift[2],
float  rot,
float  scale[2],
float  texMat[2][3] 
)

Definition at line 416 of file EditorBrushPrimit.cpp.

void MatrixForPoints ( idVec3D  M[3],
idVec3D  D[2],
brushprimit_texdef_t *  T 
)

Definition at line 563 of file EditorBrushPrimit.cpp.

void RotateFaceTexture_BrushPrimit ( face_t *  f,
int  nAxis,
float  fDeg,
idVec3  vOrigin 
)

Definition at line 909 of file EditorBrushPrimit.cpp.

double SarrusDet ( idVec3D  a,
idVec3D  b,
idVec3D  c 
)

Definition at line 53 of file EditorBrushPrimit.cpp.

void Select_ShiftTexture_BrushPrimit ( face_t *  f,
float  x,
float  y,
bool  autoAdjust 
)

Definition at line 505 of file EditorBrushPrimit.cpp.

void TexMatToFakeTexCoords ( float  texMat[2][3],
float  shift[2],
float rot,
float  scale[2] 
)

Definition at line 369 of file EditorBrushPrimit.cpp.

void TextureLockTransformation_BrushPrimit ( face_t *  f)

Definition at line 790 of file EditorBrushPrimit.cpp.

Variable Documentation

double txl_fDeg

Definition at line 779 of file EditorBrushPrimit.cpp.

idVec3D txl_matrix[3]

Definition at line 783 of file EditorBrushPrimit.cpp.

int txl_nAxis

Definition at line 778 of file EditorBrushPrimit.cpp.

idVec3D txl_origin

Definition at line 784 of file EditorBrushPrimit.cpp.

idVec3D txl_vOrigin

Definition at line 780 of file EditorBrushPrimit.cpp.

bool txlock_bRotation

Definition at line 775 of file EditorBrushPrimit.cpp.