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

Go to the source code of this file.

Macros

#define MEMORY_BLOCK_SIZE   0x100000
 

Functions

idScreenRect R_ScreenRectFromViewFrustumBounds (const idBounds &bounds)
 
void R_ShowColoredScreenRect (const idScreenRect &rect, int colorIndex)
 
void R_ToggleSmpFrame (void)
 
void R_ShutdownFrameData (void)
 
void R_InitFrameData (void)
 
int R_CountFrameData (void)
 
voidR_StaticAlloc (int bytes)
 
voidR_ClearedStaticAlloc (int bytes)
 
void R_StaticFree (void *data)
 
voidR_FrameAlloc (int bytes)
 
voidR_ClearedFrameAlloc (int bytes)
 
void R_FrameFree (void *data)
 
void R_AxisToModelMatrix (const idMat3 &axis, const idVec3 &origin, float modelMatrix[16])
 
void R_LocalPointToGlobal (const float modelMatrix[16], const idVec3 &in, idVec3 &out)
 
void R_PointTimesMatrix (const float modelMatrix[16], const idVec4 &in, idVec4 &out)
 
void R_GlobalPointToLocal (const float modelMatrix[16], const idVec3 &in, idVec3 &out)
 
void R_LocalVectorToGlobal (const float modelMatrix[16], const idVec3 &in, idVec3 &out)
 
void R_GlobalVectorToLocal (const float modelMatrix[16], const idVec3 &in, idVec3 &out)
 
void R_GlobalPlaneToLocal (const float modelMatrix[16], const idPlane &in, idPlane &out)
 
void R_LocalPlaneToGlobal (const float modelMatrix[16], const idPlane &in, idPlane &out)
 
void R_TransformEyeZToWin (float src_z, const float *projectionMatrix, float &dst_z)
 
bool R_RadiusCullLocalBox (const idBounds &bounds, const float modelMatrix[16], int numPlanes, const idPlane *planes)
 
bool R_CornerCullLocalBox (const idBounds &bounds, const float modelMatrix[16], int numPlanes, const idPlane *planes)
 
bool R_CullLocalBox (const idBounds &bounds, const float modelMatrix[16], int numPlanes, const idPlane *planes)
 
void R_TransformModelToClip (const idVec3 &src, const float *modelMatrix, const float *projectionMatrix, idPlane &eye, idPlane &dst)
 
void R_GlobalToNormalizedDeviceCoordinates (const idVec3 &global, idVec3 &ndc)
 
void R_TransformClipToDevice (const idPlane &clip, const viewDef_t *view, idVec3 &normalized)
 
void myGlMultMatrix (const float a[16], const float b[16], float out[16])
 
void R_TransposeGLMatrix (const float in[16], float out[16])
 
void R_SetViewMatrix (viewDef_t *viewDef)
 
void R_SetupProjection (void)
 
void R_RenderView (viewDef_t *parms)
 

Macro Definition Documentation

#define MEMORY_BLOCK_SIZE   0x100000

Definition at line 213 of file tr_main.cpp.

Function Documentation

void myGlMultMatrix ( const float  a[16],
const float  b[16],
float  out[16] 
)

Definition at line 783 of file tr_main.cpp.

void R_AxisToModelMatrix ( const idMat3 axis,
const idVec3 origin,
float  modelMatrix[16] 
)

Definition at line 445 of file tr_main.cpp.

void* R_ClearedFrameAlloc ( int  bytes)

Definition at line 417 of file tr_main.cpp.

void* R_ClearedStaticAlloc ( int  bytes)

Definition at line 322 of file tr_main.cpp.

bool R_CornerCullLocalBox ( const idBounds bounds,
const float  modelMatrix[16],
int  numPlanes,
const idPlane planes 
)

Definition at line 625 of file tr_main.cpp.

int R_CountFrameData ( void  )

Definition at line 274 of file tr_main.cpp.

bool R_CullLocalBox ( const idBounds bounds,
const float  modelMatrix[16],
int  numPlanes,
const idPlane planes 
)

Definition at line 675 of file tr_main.cpp.

void* R_FrameAlloc ( int  bytes)

Definition at line 365 of file tr_main.cpp.

void R_FrameFree ( void data)

Definition at line 438 of file tr_main.cpp.

void R_GlobalPlaneToLocal ( const float  modelMatrix[16],
const idPlane in,
idPlane out 
)

Definition at line 547 of file tr_main.cpp.

void R_GlobalPointToLocal ( const float  modelMatrix[16],
const idVec3 in,
idVec3 out 
)

Definition at line 522 of file tr_main.cpp.

void R_GlobalToNormalizedDeviceCoordinates ( const idVec3 global,
idVec3 ndc 
)

Definition at line 714 of file tr_main.cpp.

void R_GlobalVectorToLocal ( const float  modelMatrix[16],
const idVec3 in,
idVec3 out 
)

Definition at line 541 of file tr_main.cpp.

void R_InitFrameData ( void  )

Definition at line 246 of file tr_main.cpp.

void R_LocalPlaneToGlobal ( const float  modelMatrix[16],
const idPlane in,
idPlane out 
)

Definition at line 554 of file tr_main.cpp.

void R_LocalPointToGlobal ( const float  modelMatrix[16],
const idVec3 in,
idVec3 out 
)

Definition at line 470 of file tr_main.cpp.

void R_LocalVectorToGlobal ( const float  modelMatrix[16],
const idVec3 in,
idVec3 out 
)

Definition at line 532 of file tr_main.cpp.

void R_PointTimesMatrix ( const float  modelMatrix[16],
const idVec4 in,
idVec4 out 
)

Definition at line 511 of file tr_main.cpp.

bool R_RadiusCullLocalBox ( const idBounds bounds,
const float  modelMatrix[16],
int  numPlanes,
const idPlane planes 
)

Definition at line 587 of file tr_main.cpp.

void R_RenderView ( viewDef_t parms)

Definition at line 1095 of file tr_main.cpp.

idScreenRect R_ScreenRectFromViewFrustumBounds ( const idBounds bounds)

Definition at line 151 of file tr_main.cpp.

void R_SetupProjection ( void  )

Definition at line 895 of file tr_main.cpp.

void R_SetViewMatrix ( viewDef_t viewDef)

Definition at line 838 of file tr_main.cpp.

void R_ShowColoredScreenRect ( const idScreenRect rect,
int  colorIndex 
)

Definition at line 172 of file tr_main.cpp.

void R_ShutdownFrameData ( void  )

Definition at line 220 of file tr_main.cpp.

void* R_StaticAlloc ( int  bytes)

Definition at line 301 of file tr_main.cpp.

void R_StaticFree ( void data)

Definition at line 335 of file tr_main.cpp.

void R_ToggleSmpFrame ( void  )

Definition at line 184 of file tr_main.cpp.

void R_TransformClipToDevice ( const idPlane clip,
const viewDef_t view,
idVec3 normalized 
)

Definition at line 771 of file tr_main.cpp.

void R_TransformEyeZToWin ( float  src_z,
const float projectionMatrix,
float dst_z 
)

Definition at line 564 of file tr_main.cpp.

void R_TransformModelToClip ( const idVec3 src,
const float modelMatrix,
const float projectionMatrix,
idPlane eye,
idPlane dst 
)

Definition at line 687 of file tr_main.cpp.

void R_TransposeGLMatrix ( const float  in[16],
float  out[16] 
)

Definition at line 821 of file tr_main.cpp.