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

Go to the source code of this file.

Classes

struct  debugLine_s
 
struct  debugText_s
 
struct  debugPolygon_s
 

Macros

#define MAX_DEBUG_LINES   16384
 
#define MAX_DEBUG_TEXT   512
 
#define MAX_DEBUG_POLYGONS   8192
 
#define G_WIDTH   512
 
#define G_HEIGHT   512
 
#define BAR_HEIGHT   64
 

Typedefs

typedef struct debugLine_s debugLine_t
 
typedef struct debugText_s debugText_t
 
typedef struct debugPolygon_s debugPolygon_t
 

Functions

void RB_DrawBounds (const idBounds &bounds)
 
void RB_SimpleSurfaceSetup (const drawSurf_t *drawSurf)
 
void RB_SimpleWorldSetup (void)
 
void RB_PolygonClear (void)
 
void RB_ShowDestinationAlpha (void)
 
void RB_ScanStencilBuffer (void)
 
void RB_CountStencilBuffer (void)
 
void RB_ShowOverdraw (void)
 
void RB_ShowIntensity (void)
 
void RB_ShowDepthBuffer (void)
 
void RB_ShowLightCount (void)
 
void RB_ShowSilhouette (void)
 
void RB_T_RenderTriangleSurfaceAsLines (const drawSurf_t *surf)
 
void RB_ShowLights (void)
 
void RB_ShowPortals (void)
 
void RB_ClearDebugText (int time)
 
void RB_AddDebugText (const char *text, const idVec3 &origin, float scale, const idVec4 &color, const idMat3 &viewAxis, const int align, const int lifetime, const bool depthTest)
 
float RB_DrawTextLength (const char *text, float scale, int len)
 
void RB_ShowDebugText (void)
 
void RB_ClearDebugLines (int time)
 
void RB_AddDebugLine (const idVec4 &color, const idVec3 &start, const idVec3 &end, const int lifeTime, const bool depthTest)
 
void RB_ShowDebugLines (void)
 
void RB_ClearDebugPolygons (int time)
 
void RB_AddDebugPolygon (const idVec4 &color, const idWinding &winding, const int lifeTime, const bool depthTest)
 
void RB_ShowDebugPolygons (void)
 
void RB_TestGamma (void)
 
void RB_TestImage (void)
 
void RB_RenderDebugTools (drawSurf_t **drawSurfs, int numDrawSurfs)
 
void RB_ShutdownDebugTools (void)
 

Variables

debugLine_t rb_debugLines [MAX_DEBUG_LINES]
 
int rb_numDebugLines = 0
 
int rb_debugLineTime = 0
 
debugText_t rb_debugText [MAX_DEBUG_TEXT]
 
int rb_numDebugText = 0
 
int rb_debugTextTime = 0
 
debugPolygon_t rb_debugPolygons [MAX_DEBUG_POLYGONS]
 
int rb_numDebugPolygons = 0
 
int rb_debugPolygonTime = 0
 

Macro Definition Documentation

#define BAR_HEIGHT   64

Definition at line 2119 of file tr_rendertools.cpp.

#define G_HEIGHT   512

Definition at line 2118 of file tr_rendertools.cpp.

#define G_WIDTH   512

Definition at line 2117 of file tr_rendertools.cpp.

#define MAX_DEBUG_LINES   16384

Definition at line 35 of file tr_rendertools.cpp.

#define MAX_DEBUG_POLYGONS   8192

Definition at line 66 of file tr_rendertools.cpp.

#define MAX_DEBUG_TEXT   512

Definition at line 49 of file tr_rendertools.cpp.

Typedef Documentation

typedef struct debugLine_s debugLine_t
typedef struct debugText_s debugText_t

Function Documentation

void RB_AddDebugLine ( const idVec4 color,
const idVec3 start,
const idVec3 end,
const int  lifeTime,
const bool  depthTest 
)

Definition at line 1922 of file tr_rendertools.cpp.

void RB_AddDebugPolygon ( const idVec4 color,
const idWinding winding,
const int  lifeTime,
const bool  depthTest 
)

Definition at line 2039 of file tr_rendertools.cpp.

void RB_AddDebugText ( const char *  text,
const idVec3 origin,
float  scale,
const idVec4 color,
const idMat3 viewAxis,
const int  align,
const int  lifetime,
const bool  depthTest 
)

Definition at line 1696 of file tr_rendertools.cpp.

void RB_ClearDebugLines ( int  time)

Definition at line 1891 of file tr_rendertools.cpp.

void RB_ClearDebugPolygons ( int  time)

Definition at line 2007 of file tr_rendertools.cpp.

void RB_ClearDebugText ( int  time)

Definition at line 1660 of file tr_rendertools.cpp.

void RB_CountStencilBuffer ( void  )

Definition at line 237 of file tr_rendertools.cpp.

void RB_DrawBounds ( const idBounds bounds)

Definition at line 86 of file tr_rendertools.cpp.

float RB_DrawTextLength ( const char *  text,
float  scale,
int  len 
)

Definition at line 1719 of file tr_rendertools.cpp.

void RB_PolygonClear ( void  )

Definition at line 168 of file tr_rendertools.cpp.

void RB_RenderDebugTools ( drawSurf_t **  drawSurfs,
int  numDrawSurfs 
)

Definition at line 2329 of file tr_rendertools.cpp.

void RB_ScanStencilBuffer ( void  )

Definition at line 204 of file tr_rendertools.cpp.

void RB_ShowDebugLines ( void  )

Definition at line 1940 of file tr_rendertools.cpp.

void RB_ShowDebugPolygons ( void  )

Definition at line 2056 of file tr_rendertools.cpp.

void RB_ShowDebugText ( void  )

Definition at line 1835 of file tr_rendertools.cpp.

void RB_ShowDepthBuffer ( void  )

Definition at line 437 of file tr_rendertools.cpp.

void RB_ShowDestinationAlpha ( void  )

Definition at line 191 of file tr_rendertools.cpp.

void RB_ShowIntensity ( void  )

Definition at line 380 of file tr_rendertools.cpp.

void RB_ShowLightCount ( void  )

Definition at line 485 of file tr_rendertools.cpp.

void RB_ShowLights ( void  )

Definition at line 1562 of file tr_rendertools.cpp.

void RB_ShowOverdraw ( void  )

Definition at line 302 of file tr_rendertools.cpp.

void RB_ShowPortals ( void  )

Definition at line 1637 of file tr_rendertools.cpp.

void RB_ShowSilhouette ( void  )

Definition at line 545 of file tr_rendertools.cpp.

void RB_ShutdownDebugTools ( void  )

Definition at line 2381 of file tr_rendertools.cpp.

void RB_SimpleSurfaceSetup ( const drawSurf_t drawSurf)

Definition at line 125 of file tr_rendertools.cpp.

void RB_SimpleWorldSetup ( void  )

Definition at line 147 of file tr_rendertools.cpp.

void RB_T_RenderTriangleSurfaceAsLines ( const drawSurf_t surf)

Definition at line 709 of file tr_rendertools.cpp.

void RB_TestGamma ( void  )

Definition at line 2121 of file tr_rendertools.cpp.

void RB_TestImage ( void  )

Definition at line 2263 of file tr_rendertools.cpp.

Variable Documentation

debugLine_t rb_debugLines[MAX_DEBUG_LINES]

Definition at line 45 of file tr_rendertools.cpp.

int rb_debugLineTime = 0

Definition at line 47 of file tr_rendertools.cpp.

Definition at line 75 of file tr_rendertools.cpp.

int rb_debugPolygonTime = 0

Definition at line 77 of file tr_rendertools.cpp.

debugText_t rb_debugText[MAX_DEBUG_TEXT]

Definition at line 62 of file tr_rendertools.cpp.

int rb_debugTextTime = 0

Definition at line 64 of file tr_rendertools.cpp.

int rb_numDebugLines = 0

Definition at line 46 of file tr_rendertools.cpp.

int rb_numDebugPolygons = 0

Definition at line 76 of file tr_rendertools.cpp.

int rb_numDebugText = 0

Definition at line 63 of file tr_rendertools.cpp.