doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions | Variables
tr_local.h File Reference
#include "Image.h"
#include "MegaTexture.h"
#include "ModelDecal.h"
#include "ModelOverlay.h"
#include "Interaction.h"
#include "RenderWorld_local.h"
#include "GuiModel.h"
#include "VertexCache.h"

Go to the source code of this file.

Classes

class  idScreenRect
 
struct  drawSurf_s
 
struct  shadowFrustum_t
 
struct  areaReference_s
 
class  idRenderLight
 
class  idRenderEntity
 
class  idRenderLightLocal
 
class  idRenderEntityLocal
 
struct  viewLight_s
 
struct  viewEntity_s
 
struct  viewDef_s
 
struct  drawInteraction_t
 
struct  emptyCommand_t
 
struct  setBufferCommand_t
 
struct  drawSurfsCommand_t
 
struct  copyRenderCommand_t
 
struct  frameMemoryBlock_s
 
struct  frameData_t
 
struct  performanceCounters_t
 
struct  tmu_t
 
struct  glstate_t
 
struct  backEndCounters_t
 
struct  backEndState_t
 
struct  renderCrop_t
 
class  idRenderSystemLocal
 
struct  glimpParms_t
 
struct  optimizedShadow_t
 
struct  deformInfo_s
 
struct  localTrace_t
 

Macros

#define USE_TRI_DATA_ALLOCATOR
 

Typedefs

typedef struct drawSurf_s drawSurf_t
 
typedef struct areaReference_s areaReference_t
 
typedef struct viewLight_s viewLight_t
 
typedef struct viewEntity_s viewEntity_t
 
typedef struct viewDef_s viewDef_t
 
typedef struct frameMemoryBlock_s frameMemoryBlock_t
 
typedef struct deformInfo_s deformInfo_t
 

Enumerations

enum  demoCommand_t {
  DC_BAD, DC_RENDERVIEW, DC_UPDATE_ENTITYDEF, DC_DELETE_ENTITYDEF,
  DC_UPDATE_LIGHTDEF, DC_DELETE_LIGHTDEF, DC_LOADMAP, DC_CROP_RENDER,
  DC_UNCROP_RENDER, DC_CAPTURE_RENDER, DC_END_FRAME, DC_DEFINE_MODEL,
  DC_SET_PORTAL_STATE, DC_UPDATE_SOUNDOCCLUSION, DC_GUI_MODEL
}
 
enum  renderCommand_t {
  RC_NOP, RC_DRAW_VIEW, RC_SET_BUFFER, RC_COPY_RENDER,
  RC_SWAP_BUFFERS
}
 
enum  backEndName_t {
  BE_ARB, BE_NV10, BE_NV20, BE_R200,
  BE_ARB2, BE_BAD
}
 
enum  program_t {
  PROG_INVALID, VPROG_INTERACTION, VPROG_ENVIRONMENT, VPROG_BUMPY_ENVIRONMENT,
  VPROG_R200_INTERACTION, VPROG_STENCIL_SHADOW, VPROG_NV20_BUMP_AND_LIGHT, VPROG_NV20_DIFFUSE_COLOR,
  VPROG_NV20_SPECULAR_COLOR, VPROG_NV20_DIFFUSE_AND_SPECULAR_COLOR, VPROG_TEST, FPROG_INTERACTION,
  FPROG_ENVIRONMENT, FPROG_BUMPY_ENVIRONMENT, FPROG_TEST, VPROG_AMBIENT,
  FPROG_AMBIENT, VPROG_GLASSWARP, FPROG_GLASSWARP, PROG_USER
}
 
enum  programParameter_t {
  PP_LIGHT_ORIGIN = 4, PP_VIEW_ORIGIN, PP_LIGHT_PROJECT_S, PP_LIGHT_PROJECT_T,
  PP_LIGHT_PROJECT_Q, PP_LIGHT_FALLOFF_S, PP_BUMP_MATRIX_S, PP_BUMP_MATRIX_T,
  PP_DIFFUSE_MATRIX_S, PP_DIFFUSE_MATRIX_T, PP_SPECULAR_MATRIX_S, PP_SPECULAR_MATRIX_T,
  PP_COLOR_MODULATE, PP_COLOR_ADD, PP_LIGHT_FALLOFF_TQ = 20
}
 
enum  shadowGen_t { SG_DYNAMIC, SG_STATIC, SG_OFFLINE }
 

Functions

idScreenRect R_ScreenRectFromViewFrustumBounds (const idBounds &bounds)
 
void R_ShowColoredScreenRect (const idScreenRect &rect, int colorIndex)
 
void R_LockSurfaceScene (viewDef_t *parms)
 
void R_ClearCommandChain (void)
 
void R_AddDrawViewCmd (viewDef_t *parms)
 
void R_ReloadGuis_f (const idCmdArgs &args)
 
void R_ListGuis_f (const idCmdArgs &args)
 
voidR_GetCommandBuffer (int bytes)
 
bool R_GlobalShaderOverride (const idMaterial **shader)
 
const idMaterialR_RemapShaderBySkin (const idMaterial *shader, const idDeclSkin *customSkin, const idMaterial *customShader)
 
void GL_SelectTexture (int unit)
 
void GL_CheckErrors (void)
 
void GL_ClearStateDelta (void)
 
void GL_State (int stateVector)
 
void GL_TexEnv (int env)
 
void GL_Cull (int cullType)
 
void R_Init (void)
 
void R_InitOpenGL (void)
 
void R_DoneFreeType (void)
 
void R_SetColorMappings (void)
 
void R_ScreenShot_f (const idCmdArgs &args)
 
void R_StencilShot (void)
 
bool R_CheckExtension (char *name)
 
bool GLimp_Init (glimpParms_t parms)
 
bool GLimp_SetScreenParms (glimpParms_t parms)
 
void GLimp_Shutdown (void)
 
void GLimp_SwapBuffers (void)
 
void GLimp_SetGamma (unsigned short red[256], unsigned short green[256], unsigned short blue[256])
 
bool GLimp_SpawnRenderThread (void(*function)(void))
 
voidGLimp_BackEndSleep (void)
 
void GLimp_FrontEndSleep (void)
 
void GLimp_WakeBackEnd (void *data)
 
void GLimp_ActivateContext (void)
 
void GLimp_DeactivateContext (void)
 
void GLimp_EnableLogging (bool enable)
 
void R_RenderView (viewDef_t *parms)
 
bool R_CullLocalBox (const idBounds &bounds, const float modelMatrix[16], int numPlanes, const idPlane *planes)
 
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)
 
void R_AxisToModelMatrix (const idMat3 &axis, const idVec3 &origin, float modelMatrix[16])
 
void R_GlobalPointToLocal (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_PointTimesMatrix (const float modelMatrix[16], const idVec4 &in, idVec4 &out)
 
void R_LocalPointToGlobal (const float modelMatrix[16], const idVec3 &in, idVec3 &out)
 
void R_LocalVectorToGlobal (const float modelMatrix[16], const idVec3 &in, idVec3 &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)
 
void R_GlobalToNormalizedDeviceCoordinates (const idVec3 &global, idVec3 &ndc)
 
void R_TransformModelToClip (const idVec3 &src, const float *modelMatrix, const float *projectionMatrix, idPlane &eye, idPlane &dst)
 
void R_TransformClipToDevice (const idPlane &clip, const viewDef_t *view, idVec3 &normalized)
 
void R_TransposeGLMatrix (const float in[16], float out[16])
 
void R_SetViewMatrix (viewDef_t *viewDef)
 
void myGlMultMatrix (const float *a, const float *b, float *out)
 
void R_ListRenderLightDefs_f (const idCmdArgs &args)
 
void R_ListRenderEntityDefs_f (const idCmdArgs &args)
 
bool R_IssueEntityDefCallback (idRenderEntityLocal *def)
 
idRenderModelR_EntityDefDynamicModel (idRenderEntityLocal *def)
 
viewEntity_tR_SetEntityDefViewEntity (idRenderEntityLocal *def)
 
viewLight_tR_SetLightDefViewLight (idRenderLightLocal *def)
 
void R_AddDrawSurf (const srfTriangles_t *tri, const viewEntity_t *space, const renderEntity_t *renderEntity, const idMaterial *shader, const idScreenRect &scissor)
 
void R_LinkLightSurf (const drawSurf_t **link, const srfTriangles_t *tri, const viewEntity_t *space, const idRenderLightLocal *light, const idMaterial *shader, const idScreenRect &scissor, bool viewInsideShadow)
 
bool R_CreateAmbientCache (srfTriangles_t *tri, bool needsLighting)
 
bool R_CreateLightingCache (const idRenderEntityLocal *ent, const idRenderLightLocal *light, srfTriangles_t *tri)
 
void R_CreatePrivateShadowCache (srfTriangles_t *tri)
 
void R_CreateVertexProgramShadowCache (srfTriangles_t *tri)
 
void R_RegenerateWorld_f (const idCmdArgs &args)
 
void R_ModulateLights_f (const idCmdArgs &args)
 
void R_SetLightProject (idPlane lightProject[4], const idVec3 origin, const idVec3 targetPoint, const idVec3 rightVector, const idVec3 upVector, const idVec3 start, const idVec3 stop)
 
void R_AddLightSurfaces (void)
 
void R_AddModelSurfaces (void)
 
void R_RemoveUnecessaryViewLights (void)
 
void R_FreeDerivedData (void)
 
void R_ReCreateWorldReferences (void)
 
void R_CreateEntityRefs (idRenderEntityLocal *def)
 
void R_CreateLightRefs (idRenderLightLocal *light)
 
void R_DeriveLightData (idRenderLightLocal *light)
 
void R_FreeLightDefDerivedData (idRenderLightLocal *light)
 
void R_CheckForEntityDefsUsingModel (idRenderModel *model)
 
void R_ClearEntityDefDynamicModel (idRenderEntityLocal *def)
 
void R_FreeEntityDefDerivedData (idRenderEntityLocal *def, bool keepDecals, bool keepCachedDynamicModel)
 
void R_FreeEntityDefCachedDynamicModel (idRenderEntityLocal *def)
 
void R_FreeEntityDefDecals (idRenderEntityLocal *def)
 
void R_FreeEntityDefOverlay (idRenderEntityLocal *def)
 
void R_FreeEntityDefFadedDecals (idRenderEntityLocal *def, int time)
 
void R_CreateLightDefFogPortals (idRenderLightLocal *ldef)
 
srfTriangles_tR_PolytopeSurface (int numPlanes, const idPlane *planes, idWinding **windings)
 
void RB_EnterWeaponDepthHack ()
 
void RB_EnterModelDepthHack (float depth)
 
void RB_LeaveDepthHack ()
 
void RB_DrawElementsImmediate (const srfTriangles_t *tri)
 
void RB_RenderTriangleSurface (const srfTriangles_t *tri)
 
void RB_T_RenderTriangleSurface (const drawSurf_t *surf)
 
void RB_RenderDrawSurfListWithFunction (drawSurf_t **drawSurfs, int numDrawSurfs, void(*triFunc_)(const drawSurf_t *))
 
void RB_RenderDrawSurfChainWithFunction (const drawSurf_t *drawSurfs, void(*triFunc_)(const drawSurf_t *))
 
void RB_DrawShaderPasses (drawSurf_t **drawSurfs, int numDrawSurfs)
 
void RB_LoadShaderTextureMatrix (const float *shaderRegisters, const textureStage_t *texture)
 
void RB_GetShaderTextureMatrix (const float *shaderRegisters, const textureStage_t *texture, float matrix[16])
 
void RB_CreateSingleDrawInteractions (const drawSurf_t *surf, void(*DrawInteraction)(const drawInteraction_t *))
 
const shaderStage_tRB_SetLightTexture (const idRenderLightLocal *light)
 
void RB_DrawView (const void *data)
 
void RB_DetermineLightScale (void)
 
void RB_STD_LightScale (void)
 
void RB_BeginDrawingView (void)
 
void RB_DrawElementsWithCounters (const srfTriangles_t *tri)
 
void RB_DrawShadowElementsWithCounters (const srfTriangles_t *tri, int numIndexes)
 
void RB_STD_FillDepthBuffer (drawSurf_t **drawSurfs, int numDrawSurfs)
 
void RB_BindVariableStageImage (const textureStage_t *texture, const float *shaderRegisters)
 
void RB_BindStageTexture (const float *shaderRegisters, const textureStage_t *texture, const drawSurf_t *surf)
 
void RB_FinishStageTexture (const textureStage_t *texture, const drawSurf_t *surf)
 
void RB_StencilShadowPass (const drawSurf_t *drawSurfs)
 
void RB_STD_DrawView (void)
 
void RB_STD_FogAllLights (void)
 
void RB_BakeTextureMatrixIntoTexgen (idPlane lightProject[3], const float textureMatrix[16])
 
void RB_ARB_DrawInteractions (void)
 
void R_R200_Init (void)
 
void RB_R200_DrawInteractions (void)
 
void R_NV10_Init (void)
 
void RB_NV10_DrawInteractions (void)
 
void R_NV20_Init (void)
 
void RB_NV20_DrawInteractions (void)
 
void R_ARB2_Init (void)
 
void RB_ARB2_DrawInteractions (void)
 
void R_ReloadARBPrograms_f (const idCmdArgs &args)
 
int R_FindARBProgram (GLenum target, const char *program)
 
void R_MakeShadowFrustums (idRenderLightLocal *def)
 
srfTriangles_tR_CreateShadowVolume (const idRenderEntityLocal *ent, const srfTriangles_t *tri, const idRenderLightLocal *light, shadowGen_t optimize, srfCullInfo_t &cullInfo)
 
srfTriangles_tR_CreateVertexProgramTurboShadowVolume (const idRenderEntityLocal *ent, const srfTriangles_t *tri, const idRenderLightLocal *light, srfCullInfo_t &cullInfo)
 
srfTriangles_tR_CreateTurboShadowVolume (const idRenderEntityLocal *ent, const srfTriangles_t *tri, const idRenderLightLocal *light, srfCullInfo_t &cullInfo)
 
optimizedShadow_t SuperOptimizeOccluders (idVec4 *verts, glIndex_t *indexes, int numIndexes, idPlane projectionPlane, idVec3 projectionOrigin)
 
void CleanupOptimizedShadowTris (srfTriangles_t *tri)
 
void R_InitTriSurfData (void)
 
void R_ShutdownTriSurfData (void)
 
void R_PurgeTriSurfData (frameData_t *frame)
 
void R_ShowTriSurfMemory_f (const idCmdArgs &args)
 
srfTriangles_tR_AllocStaticTriSurf (void)
 
srfTriangles_tR_CopyStaticTriSurf (const srfTriangles_t *tri)
 
void R_AllocStaticTriSurfVerts (srfTriangles_t *tri, int numVerts)
 
void R_AllocStaticTriSurfIndexes (srfTriangles_t *tri, int numIndexes)
 
void R_AllocStaticTriSurfShadowVerts (srfTriangles_t *tri, int numVerts)
 
void R_AllocStaticTriSurfPlanes (srfTriangles_t *tri, int numIndexes)
 
void R_ResizeStaticTriSurfVerts (srfTriangles_t *tri, int numVerts)
 
void R_ResizeStaticTriSurfIndexes (srfTriangles_t *tri, int numIndexes)
 
void R_ResizeStaticTriSurfShadowVerts (srfTriangles_t *tri, int numVerts)
 
void R_ReferenceStaticTriSurfVerts (srfTriangles_t *tri, const srfTriangles_t *reference)
 
void R_ReferenceStaticTriSurfIndexes (srfTriangles_t *tri, const srfTriangles_t *reference)
 
void R_FreeStaticTriSurfSilIndexes (srfTriangles_t *tri)
 
void R_FreeStaticTriSurf (srfTriangles_t *tri)
 
void R_FreeStaticTriSurfVertexCaches (srfTriangles_t *tri)
 
void R_ReallyFreeStaticTriSurf (srfTriangles_t *tri)
 
void R_FreeDeferredTriSurfs (frameData_t *frame)
 
int R_TriSurfMemory (const srfTriangles_t *tri)
 
void R_BoundTriSurf (srfTriangles_t *tri)
 
void R_RemoveDuplicatedTriangles (srfTriangles_t *tri)
 
void R_CreateSilIndexes (srfTriangles_t *tri)
 
void R_RemoveDegenerateTriangles (srfTriangles_t *tri)
 
void R_RemoveUnusedVerts (srfTriangles_t *tri)
 
void R_RangeCheckIndexes (const srfTriangles_t *tri)
 
void R_CreateVertexNormals (srfTriangles_t *tri)
 
void R_DeriveFacePlanes (srfTriangles_t *tri)
 
void R_CleanupTriangles (srfTriangles_t *tri, bool createNormals, bool identifySilEdges, bool useUnsmoothedTangents)
 
void R_ReverseTriangles (srfTriangles_t *tri)
 
srfTriangles_tR_MergeSurfaceList (const srfTriangles_t **surfaces, int numSurfaces)
 
srfTriangles_tR_MergeTriangles (const srfTriangles_t *tri1, const srfTriangles_t *tri2)
 
void R_DeriveTangents (srfTriangles_t *tri, bool allocFacePlanes=true)
 
deformInfo_tR_BuildDeformInfo (int numVerts, const idDrawVert *verts, int numIndexes, const int *indexes, bool useUnsmoothedTangents)
 
void R_FreeDeformInfo (deformInfo_t *deformInfo)
 
int R_DeformInfoMemoryUsed (deformInfo_t *deformInfo)
 
bool R_PreciseCullSurface (const drawSurf_t *drawSurf, idBounds &ndcBounds)
 
bool R_GenerateSubViews (void)
 
void R_InitFrameData (void)
 
void R_ShutdownFrameData (void)
 
int R_CountFrameData (void)
 
void R_ToggleSmpFrame (void)
 
voidR_FrameAlloc (int bytes)
 
voidR_ClearedFrameAlloc (int bytes)
 
void R_FrameFree (void *data)
 
voidR_StaticAlloc (int bytes)
 
voidR_ClearedStaticAlloc (int bytes)
 
void R_StaticFree (void *data)
 
float RB_DrawTextLength (const char *text, float scale, int len)
 
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)
 
void RB_ClearDebugText (int time)
 
void RB_AddDebugLine (const idVec4 &color, const idVec3 &start, const idVec3 &end, const int lifeTime, const bool depthTest)
 
void RB_ClearDebugLines (int time)
 
void RB_AddDebugPolygon (const idVec4 &color, const idWinding &winding, const int lifeTime, const bool depthTest)
 
void RB_ClearDebugPolygons (int time)
 
void RB_DrawBounds (const idBounds &bounds)
 
void RB_ShowLights (drawSurf_t **drawSurfs, int numDrawSurfs)
 
void RB_ShowLightCount (drawSurf_t **drawSurfs, int numDrawSurfs)
 
void RB_PolygonClear (void)
 
void RB_ScanStencilBuffer (void)
 
void RB_ShowDestinationAlpha (void)
 
void RB_ShowOverdraw (void)
 
void RB_RenderDebugTools (drawSurf_t **drawSurfs, int numDrawSurfs)
 
void RB_ShutdownDebugTools (void)
 
void RB_SetDefaultGLState (void)
 
void RB_SetGL2D (void)
 
void RB_LogComment (const char *comment,...) id_attribute((format(printf
 
void void RB_ShowImages (void)
 
void RB_ExecuteBackEndCommands (const emptyCommand_t *cmds)
 
void R_SurfaceToTextureAxis (const srfTriangles_t *tri, idVec3 &origin, idVec3 axis[3])
 
void R_RenderGuiSurf (idUserInterface *gui, drawSurf_t *drawSurf)
 
void R_OrderIndexes (int numIndexes, glIndex_t *indexes)
 
void R_DeformDrawSurf (drawSurf_t *drawSurf)
 
localTrace_t R_LocalTrace (const idVec3 &start, const idVec3 &end, const float radius, const srfTriangles_t *tri)
 
void RB_ShowTrace (drawSurf_t **drawSurfs, int numDrawSurfs)
 
idScreenRect R_CalcIntersectionScissor (const idRenderLightLocal *lightDef, const idRenderEntityLocal *entityDef, const viewDef_t *viewDef)
 

Variables

const int SMP_FRAMES = 1
 
const int FALLOFF_TEXTURE_SIZE = 64
 
const float DEFAULT_FOG_DISTANCE = 500.0f
 
const int FOG_ENTER_SIZE = 64
 
const float FOG_ENTER = (FOG_ENTER_SIZE+1.0f)/(FOG_ENTER_SIZE*2)
 
const int MAX_CLIP_PLANES = 1
 
const int INITIAL_DRAWSURFS = 0x4000
 
frameData_tframeData
 
const int MAX_MULTITEXTURE_UNITS = 8
 
const int MAX_GUI_SURFACES = 1024
 
backEndState_t backEnd
 
idRenderSystemLocal tr
 
glconfig_t glConfig
 
idCVar r_ext_vertex_array_range
 
idCVar r_glDriver
 
idCVar r_mode
 
idCVar r_displayRefresh
 
idCVar r_fullscreen
 
idCVar r_multiSamples
 
idCVar r_ignore
 
idCVar r_ignore2
 
idCVar r_znear
 
idCVar r_finish
 
idCVar r_frontBuffer
 
idCVar r_swapInterval
 
idCVar r_offsetFactor
 
idCVar r_offsetUnits
 
idCVar r_singleTriangle
 
idCVar r_logFile
 
idCVar r_clear
 
idCVar r_shadows
 
idCVar r_subviewOnly
 
idCVar r_lightScale
 
idCVar r_flareSize
 
idCVar r_gamma
 
idCVar r_brightness
 
idCVar r_renderer
 
idCVar r_cgVertexProfile
 
idCVar r_cgFragmentProfile
 
idCVar r_checkBounds
 
idCVar r_useNV20MonoLights
 
idCVar r_useLightPortalFlow
 
idCVar r_useTripleTextureARB
 
idCVar r_useShadowSurfaceScissor
 
idCVar r_useConstantMaterials
 
idCVar r_useInteractionTable
 
idCVar r_useNodeCommonChildren
 
idCVar r_useSilRemap
 
idCVar r_useCulling
 
idCVar r_useLightCulling
 
idCVar r_useLightScissors
 
idCVar r_useClippedLightScissors
 
idCVar r_useEntityCulling
 
idCVar r_useEntityScissors
 
idCVar r_useInteractionCulling
 
idCVar r_useInteractionScissors
 
idCVar r_useFrustumFarDistance
 
idCVar r_useShadowCulling
 
idCVar r_usePreciseTriangleInteractions
 
idCVar r_useTurboShadow
 
idCVar r_useExternalShadows
 
idCVar r_useOptimizedShadows
 
idCVar r_useShadowVertexProgram
 
idCVar r_useShadowProjectedCull
 
idCVar r_useDeferredTangents
 
idCVar r_useCachedDynamicModels
 
idCVar r_useTwoSidedStencil
 
idCVar r_useInfiniteFarZ
 
idCVar r_useScissor
 
idCVar r_usePortals
 
idCVar r_useStateCaching
 
idCVar r_useCombinerDisplayLists
 
idCVar r_useVertexBuffers
 
idCVar r_useIndexBuffers
 
idCVar r_useEntityCallbacks
 
idCVar r_lightAllBackFaces
 
idCVar r_useDepthBoundsTest
 
idCVar r_skipPostProcess
 
idCVar r_skipSuppress
 
idCVar r_skipInteractions
 
idCVar r_skipFrontEnd
 
idCVar r_skipBackEnd
 
idCVar r_skipCopyTexture
 
idCVar r_skipRender
 
idCVar r_skipRenderContext
 
idCVar r_skipTranslucent
 
idCVar r_skipAmbient
 
idCVar r_skipNewAmbient
 
idCVar r_skipBlendLights
 
idCVar r_skipFogLights
 
idCVar r_skipSubviews
 
idCVar r_skipGuiShaders
 
idCVar r_skipParticles
 
idCVar r_skipUpdates
 
idCVar r_skipDeforms
 
idCVar r_skipDynamicTextures
 
idCVar r_skipLightScale
 
idCVar r_skipBump
 
idCVar r_skipSpecular
 
idCVar r_skipDiffuse
 
idCVar r_skipOverlays
 
idCVar r_skipROQ
 
idCVar r_ignoreGLErrors
 
idCVar r_forceLoadImages
 
idCVar r_demonstrateBug
 
idCVar r_screenFraction
 
idCVar r_showUnsmoothedTangents
 
idCVar r_showSilhouette
 
idCVar r_showVertexColor
 
idCVar r_showUpdates
 
idCVar r_showDemo
 
idCVar r_showDynamic
 
idCVar r_showLightScale
 
idCVar r_showIntensity
 
idCVar r_showDefs
 
idCVar r_showTrace
 
idCVar r_showSmp
 
idCVar r_showDepth
 
idCVar r_showImages
 
idCVar r_showTris
 
idCVar r_showSurfaceInfo
 
idCVar r_showNormals
 
idCVar r_showEdges
 
idCVar r_showViewEntitys
 
idCVar r_showTexturePolarity
 
idCVar r_showTangentSpace
 
idCVar r_showDominantTri
 
idCVar r_showTextureVectors
 
idCVar r_showLights
 
idCVar r_showLightCount
 
idCVar r_showShadows
 
idCVar r_showShadowCount
 
idCVar r_showLightScissors
 
idCVar r_showEntityScissors
 
idCVar r_showInteractionFrustums
 
idCVar r_showInteractionScissors
 
idCVar r_showMemory
 
idCVar r_showCull
 
idCVar r_showInteractions
 
idCVar r_showSurfaces
 
idCVar r_showPrimitives
 
idCVar r_showPortals
 
idCVar r_showAlloc
 
idCVar r_showSkel
 
idCVar r_showOverDraw
 
idCVar r_jointNameScale
 
idCVar r_jointNameOffset
 
idCVar r_testGamma
 
idCVar r_testStepGamma
 
idCVar r_testGammaBias
 
idCVar r_testARBProgram
 
idCVar r_singleLight
 
idCVar r_singleEntity
 
idCVar r_singleArea
 
idCVar r_singleSurface
 
idCVar r_shadowPolygonOffset
 
idCVar r_shadowPolygonFactor
 
idCVar r_jitter
 
idCVar r_lightSourceRadius
 
idCVar r_lockSurfaces
 
idCVar r_orderIndexes
 
idCVar r_debugLineDepthTest
 
idCVar r_debugLineWidth
 
idCVar r_debugArrowStep
 
idCVar r_debugPolygonFilled
 
idCVar r_materialOverride
 
idCVar r_debugRenderToTexture
 
const int GLS_SRCBLEND_ZERO = 0x00000001
 
const int GLS_SRCBLEND_ONE = 0x0
 
const int GLS_SRCBLEND_DST_COLOR = 0x00000003
 
const int GLS_SRCBLEND_ONE_MINUS_DST_COLOR = 0x00000004
 
const int GLS_SRCBLEND_SRC_ALPHA = 0x00000005
 
const int GLS_SRCBLEND_ONE_MINUS_SRC_ALPHA = 0x00000006
 
const int GLS_SRCBLEND_DST_ALPHA = 0x00000007
 
const int GLS_SRCBLEND_ONE_MINUS_DST_ALPHA = 0x00000008
 
const int GLS_SRCBLEND_ALPHA_SATURATE = 0x00000009
 
const int GLS_SRCBLEND_BITS = 0x0000000f
 
const int GLS_DSTBLEND_ZERO = 0x0
 
const int GLS_DSTBLEND_ONE = 0x00000020
 
const int GLS_DSTBLEND_SRC_COLOR = 0x00000030
 
const int GLS_DSTBLEND_ONE_MINUS_SRC_COLOR = 0x00000040
 
const int GLS_DSTBLEND_SRC_ALPHA = 0x00000050
 
const int GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA = 0x00000060
 
const int GLS_DSTBLEND_DST_ALPHA = 0x00000070
 
const int GLS_DSTBLEND_ONE_MINUS_DST_ALPHA = 0x00000080
 
const int GLS_DSTBLEND_BITS = 0x000000f0
 
const int GLS_DEPTHMASK = 0x00000100
 
const int GLS_REDMASK = 0x00000200
 
const int GLS_GREENMASK = 0x00000400
 
const int GLS_BLUEMASK = 0x00000800
 
const int GLS_ALPHAMASK = 0x00001000
 
const int GLS_COLORMASK = (GLS_REDMASK|GLS_GREENMASK|GLS_BLUEMASK)
 
const int GLS_POLYMODE_LINE = 0x00002000
 
const int GLS_DEPTHFUNC_ALWAYS = 0x00010000
 
const int GLS_DEPTHFUNC_EQUAL = 0x00020000
 
const int GLS_DEPTHFUNC_LESS = 0x0
 
const int GLS_ATEST_EQ_255 = 0x10000000
 
const int GLS_ATEST_LT_128 = 0x20000000
 
const int GLS_ATEST_GE_128 = 0x40000000
 
const int GLS_ATEST_BITS = 0x70000000
 
const int GLS_DEFAULT = GLS_DEPTHFUNC_ALWAYS
 

Macro Definition Documentation

#define USE_TRI_DATA_ALLOCATOR

Definition at line 1467 of file tr_local.h.

Typedef Documentation

typedef struct deformInfo_s deformInfo_t
typedef struct drawSurf_s drawSurf_t
typedef struct viewDef_s viewDef_t
typedef struct viewEntity_s viewEntity_t
typedef struct viewLight_s viewLight_t

Enumeration Type Documentation

Enumerator
BE_ARB 
BE_NV10 
BE_NV20 
BE_R200 
BE_ARB2 
BE_BAD 

Definition at line 672 of file tr_local.h.

Enumerator
DC_BAD 
DC_RENDERVIEW 
DC_UPDATE_ENTITYDEF 
DC_DELETE_ENTITYDEF 
DC_UPDATE_LIGHTDEF 
DC_DELETE_LIGHTDEF 
DC_LOADMAP 
DC_CROP_RENDER 
DC_UNCROP_RENDER 
DC_CAPTURE_RENDER 
DC_END_FRAME 
DC_DEFINE_MODEL 
DC_SET_PORTAL_STATE 
DC_UPDATE_SOUNDOCCLUSION 
DC_GUI_MODEL 

Definition at line 70 of file tr_local.h.

enum program_t
Enumerator
PROG_INVALID 
VPROG_INTERACTION 
VPROG_ENVIRONMENT 
VPROG_BUMPY_ENVIRONMENT 
VPROG_R200_INTERACTION 
VPROG_STENCIL_SHADOW 
VPROG_NV20_BUMP_AND_LIGHT 
VPROG_NV20_DIFFUSE_COLOR 
VPROG_NV20_SPECULAR_COLOR 
VPROG_NV20_DIFFUSE_AND_SPECULAR_COLOR 
VPROG_TEST 
FPROG_INTERACTION 
FPROG_ENVIRONMENT 
FPROG_BUMPY_ENVIRONMENT 
FPROG_TEST 
VPROG_AMBIENT 
FPROG_AMBIENT 
VPROG_GLASSWARP 
FPROG_GLASSWARP 
PROG_USER 

Definition at line 1314 of file tr_local.h.

Enumerator
PP_LIGHT_ORIGIN 
PP_VIEW_ORIGIN 
PP_LIGHT_PROJECT_S 
PP_LIGHT_PROJECT_T 
PP_LIGHT_PROJECT_Q 
PP_LIGHT_FALLOFF_S 
PP_BUMP_MATRIX_S 
PP_BUMP_MATRIX_T 
PP_DIFFUSE_MATRIX_S 
PP_DIFFUSE_MATRIX_T 
PP_SPECULAR_MATRIX_S 
PP_SPECULAR_MATRIX_T 
PP_COLOR_MODULATE 
PP_COLOR_ADD 
PP_LIGHT_FALLOFF_TQ 

Definition at line 1367 of file tr_local.h.

Enumerator
RC_NOP 
RC_DRAW_VIEW 
RC_SET_BUFFER 
RC_COPY_RENDER 
RC_SWAP_BUFFERS 

Definition at line 472 of file tr_local.h.

Enumerator
SG_DYNAMIC 
SG_STATIC 
SG_OFFLINE 

Definition at line 1399 of file tr_local.h.

Function Documentation

void CleanupOptimizedShadowTris ( srfTriangles_t tri)

Definition at line 1137 of file shadowopt3.cpp.

void GL_CheckErrors ( void  )

Definition at line 739 of file RenderSystem_init.cpp.

void GL_ClearStateDelta ( void  )

Definition at line 228 of file tr_backend.cpp.

void GL_Cull ( int  cullType)

Definition at line 161 of file tr_backend.cpp.

void GL_SelectTexture ( int  unit)

Definition at line 135 of file tr_backend.cpp.

void GL_State ( int  stateVector)

Definition at line 239 of file tr_backend.cpp.

void GL_TexEnv ( int  env)

Definition at line 196 of file tr_backend.cpp.

void GLimp_ActivateContext ( void  )

Definition at line 89 of file dedicated.cpp.

void* GLimp_BackEndSleep ( void  )

Definition at line 82 of file glimp.cpp.

void GLimp_DeactivateContext ( void  )

Definition at line 87 of file dedicated.cpp.

void GLimp_EnableLogging ( bool  enable)

Definition at line 75 of file dedicated.cpp.

void GLimp_FrontEndSleep ( void  )

Definition at line 78 of file glimp.cpp.

bool GLimp_Init ( glimpParms_t  parms)

Definition at line 77 of file dedicated.cpp.

void GLimp_SetGamma ( unsigned short  red[256],
unsigned short  green[256],
unsigned short  blue[256] 
)

Definition at line 79 of file dedicated.cpp.

bool GLimp_SetScreenParms ( glimpParms_t  parms)

Definition at line 91 of file dedicated.cpp.

void GLimp_Shutdown ( void  )

Definition at line 83 of file dedicated.cpp.

bool GLimp_SpawnRenderThread ( void(*)(void function)

Definition at line 1445 of file macosx_glimp.mm.

void GLimp_SwapBuffers ( void  )

Definition at line 85 of file dedicated.cpp.

void GLimp_WakeBackEnd ( void data)

Definition at line 63 of file glimp.cpp.

void myGlMultMatrix ( const float a,
const float b,
float out 
)
void R_AddDrawSurf ( const srfTriangles_t tri,
const viewEntity_t space,
const renderEntity_t renderEntity,
const idMaterial shader,
const idScreenRect scissor 
)

Definition at line 1183 of file tr_light.cpp.

void R_AddDrawViewCmd ( viewDef_t parms)

Definition at line 208 of file RenderSystem.cpp.

void R_AddLightSurfaces ( void  )

Definition at line 875 of file tr_light.cpp.

void R_AddModelSurfaces ( void  )

Definition at line 1460 of file tr_light.cpp.

srfTriangles_t* R_AllocStaticTriSurf ( void  )

Definition at line 523 of file tr_trisurf.cpp.

void R_AllocStaticTriSurfIndexes ( srfTriangles_t tri,
int  numIndexes 
)

Definition at line 565 of file tr_trisurf.cpp.

void R_AllocStaticTriSurfPlanes ( srfTriangles_t tri,
int  numIndexes 
)

Definition at line 585 of file tr_trisurf.cpp.

void R_AllocStaticTriSurfShadowVerts ( srfTriangles_t tri,
int  numVerts 
)

Definition at line 575 of file tr_trisurf.cpp.

void R_AllocStaticTriSurfVerts ( srfTriangles_t tri,
int  numVerts 
)

Definition at line 555 of file tr_trisurf.cpp.

void R_ARB2_Init ( void  )

Definition at line 521 of file draw_arb2.cpp.

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

Definition at line 445 of file tr_main.cpp.

void R_BoundTriSurf ( srfTriangles_t tri)

Definition at line 704 of file tr_trisurf.cpp.

deformInfo_t* R_BuildDeformInfo ( int  numVerts,
const idDrawVert verts,
int  numIndexes,
const int indexes,
bool  useUnsmoothedTangents 
)

Definition at line 2147 of file tr_trisurf.cpp.

idScreenRect R_CalcIntersectionScissor ( const idRenderLightLocal lightDef,
const idRenderEntityLocal entityDef,
const viewDef_t viewDef 
)

Definition at line 530 of file tr_shadowbounds.cpp.

bool R_CheckExtension ( char *  name)

Definition at line 318 of file RenderSystem_init.cpp.

void R_CheckForEntityDefsUsingModel ( idRenderModel model)

Definition at line 785 of file tr_lightrun.cpp.

void R_CleanupTriangles ( srfTriangles_t tri,
bool  createNormals,
bool  identifySilEdges,
bool  useUnsmoothedTangents 
)

Definition at line 2096 of file tr_trisurf.cpp.

void R_ClearCommandChain ( void  )

Definition at line 180 of file RenderSystem.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.

void R_ClearEntityDefDynamicModel ( idRenderEntityLocal def)

Definition at line 699 of file tr_lightrun.cpp.

srfTriangles_t* R_CopyStaticTriSurf ( const srfTriangles_t tri)

Definition at line 536 of file tr_trisurf.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_CreateAmbientCache ( srfTriangles_t tri,
bool  needsLighting 
)

Definition at line 52 of file tr_light.cpp.

void R_CreateEntityRefs ( idRenderEntityLocal def)

Definition at line 168 of file tr_lightrun.cpp.

void R_CreateLightDefFogPortals ( idRenderLightLocal ldef)

Definition at line 548 of file tr_lightrun.cpp.

bool R_CreateLightingCache ( const idRenderEntityLocal ent,
const idRenderLightLocal light,
srfTriangles_t tri 
)

Definition at line 75 of file tr_light.cpp.

void R_CreateLightRefs ( idRenderLightLocal light)

Definition at line 447 of file tr_lightrun.cpp.

void R_CreatePrivateShadowCache ( srfTriangles_t tri)

Definition at line 140 of file tr_light.cpp.

srfTriangles_t* R_CreateShadowVolume ( const idRenderEntityLocal ent,
const srfTriangles_t tri,
const idRenderLightLocal light,
shadowGen_t  optimize,
srfCullInfo_t cullInfo 
)

Definition at line 1217 of file tr_stencilshadow.cpp.

void R_CreateSilIndexes ( srfTriangles_t tri)

Definition at line 765 of file tr_trisurf.cpp.

srfTriangles_t* R_CreateTurboShadowVolume ( const idRenderEntityLocal ent,
const srfTriangles_t tri,
const idRenderLightLocal light,
srfCullInfo_t cullInfo 
)

Definition at line 187 of file tr_turboshadow.cpp.

void R_CreateVertexNormals ( srfTriangles_t tri)

Definition at line 891 of file tr_trisurf.cpp.

void R_CreateVertexProgramShadowCache ( srfTriangles_t tri)

Definition at line 156 of file tr_light.cpp.

srfTriangles_t* R_CreateVertexProgramTurboShadowVolume ( const idRenderEntityLocal ent,
const srfTriangles_t tri,
const idRenderLightLocal light,
srfCullInfo_t cullInfo 
)

Definition at line 45 of file tr_turboshadow.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_DeformDrawSurf ( drawSurf_t drawSurf)

Definition at line 1228 of file tr_deform.cpp.

int R_DeformInfoMemoryUsed ( deformInfo_t deformInfo)

Definition at line 2249 of file tr_trisurf.cpp.

void R_DeriveFacePlanes ( srfTriangles_t tri)

Definition at line 827 of file tr_trisurf.cpp.

void R_DeriveLightData ( idRenderLightLocal light)

Definition at line 351 of file tr_lightrun.cpp.

void R_DeriveTangents ( srfTriangles_t tri,
bool  allocFacePlanes = true 
)

Definition at line 1647 of file tr_trisurf.cpp.

void R_DoneFreeType ( void  )

Definition at line 545 of file tr_font.cpp.

idRenderModel* R_EntityDefDynamicModel ( idRenderEntityLocal def)

Definition at line 1104 of file tr_light.cpp.

int R_FindARBProgram ( GLenum  target,
const char *  program 
)

Definition at line 466 of file draw_arb2.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_FreeDeferredTriSurfs ( frameData_t frame)

Definition at line 466 of file tr_trisurf.cpp.

void R_FreeDeformInfo ( deformInfo_t deformInfo)

Definition at line 2222 of file tr_trisurf.cpp.

void R_FreeDerivedData ( void  )

Definition at line 753 of file tr_lightrun.cpp.

void R_FreeEntityDefCachedDynamicModel ( idRenderEntityLocal def)
void R_FreeEntityDefDecals ( idRenderEntityLocal def)

Definition at line 716 of file tr_lightrun.cpp.

void R_FreeEntityDefDerivedData ( idRenderEntityLocal def,
bool  keepDecals,
bool  keepCachedDynamicModel 
)

Definition at line 633 of file tr_lightrun.cpp.

void R_FreeEntityDefFadedDecals ( idRenderEntityLocal def,
int  time 
)

Definition at line 729 of file tr_lightrun.cpp.

void R_FreeEntityDefOverlay ( idRenderEntityLocal def)

Definition at line 738 of file tr_lightrun.cpp.

void R_FreeLightDefDerivedData ( idRenderLightLocal light)

Definition at line 596 of file tr_lightrun.cpp.

void R_FreeStaticTriSurf ( srfTriangles_t tri)

Definition at line 489 of file tr_trisurf.cpp.

void R_FreeStaticTriSurfSilIndexes ( srfTriangles_t tri)

Definition at line 654 of file tr_trisurf.cpp.

void R_FreeStaticTriSurfVertexCaches ( srfTriangles_t tri)

Definition at line 343 of file tr_trisurf.cpp.

bool R_GenerateSubViews ( void  )

Definition at line 549 of file tr_subview.cpp.

void* R_GetCommandBuffer ( int  bytes)

Definition at line 160 of file RenderSystem.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.

bool R_GlobalShaderOverride ( const idMaterial **  shader)

Definition at line 2093 of file RenderWorld.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_Init ( void  )
void R_InitFrameData ( void  )

Definition at line 246 of file tr_main.cpp.

void R_InitOpenGL ( void  )

Definition at line 618 of file RenderSystem_init.cpp.

void R_InitTriSurfData ( void  )

Definition at line 157 of file tr_trisurf.cpp.

bool R_IssueEntityDefCallback ( idRenderEntityLocal def)

Definition at line 1060 of file tr_light.cpp.

void R_LinkLightSurf ( const drawSurf_t **  link,
const srfTriangles_t tri,
const viewEntity_t space,
const idRenderLightLocal light,
const idMaterial shader,
const idScreenRect scissor,
bool  viewInsideShadow 
)

Definition at line 658 of file tr_light.cpp.

void R_ListGuis_f ( const idCmdArgs args)

Definition at line 217 of file tr_guisurf.cpp.

void R_ListRenderEntityDefs_f ( const idCmdArgs args)

Definition at line 83 of file RenderWorld.cpp.

void R_ListRenderLightDefs_f ( const idCmdArgs args)

Definition at line 39 of file RenderWorld.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.

localTrace_t R_LocalTrace ( const idVec3 start,
const idVec3 end,
const float  radius,
const srfTriangles_t tri 
)

Definition at line 43 of file tr_trace.cpp.

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

Definition at line 532 of file tr_main.cpp.

void R_LockSurfaceScene ( viewDef_t parms)

Definition at line 246 of file RenderSystem.cpp.

void R_MakeShadowFrustums ( idRenderLightLocal def)

Definition at line 1032 of file tr_stencilshadow.cpp.

srfTriangles_t* R_MergeSurfaceList ( const srfTriangles_t **  surfaces,
int  numSurfaces 
)

Definition at line 2006 of file tr_trisurf.cpp.

srfTriangles_t* R_MergeTriangles ( const srfTriangles_t tri1,
const srfTriangles_t tri2 
)

Definition at line 2049 of file tr_trisurf.cpp.

void R_ModulateLights_f ( const idCmdArgs args)

Definition at line 123 of file tr_lightrun.cpp.

void R_NV10_Init ( void  )

Definition at line 639 of file draw_nv10.cpp.

void R_NV20_Init ( void  )

Definition at line 844 of file draw_nv20.cpp.

void R_OrderIndexes ( int  numIndexes,
glIndex_t indexes 
)

Definition at line 89 of file tr_orderIndexes.cpp.

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

Definition at line 511 of file tr_main.cpp.

srfTriangles_t* R_PolytopeSurface ( int  numPlanes,
const idPlane planes,
idWinding **  windings 
)

Definition at line 44 of file tr_polytope.cpp.

bool R_PreciseCullSurface ( const drawSurf_t drawSurf,
idBounds ndcBounds 
)

Definition at line 109 of file tr_subview.cpp.

void R_PurgeTriSurfData ( frameData_t frame)

Definition at line 208 of file tr_trisurf.cpp.

void R_R200_Init ( void  )

Definition at line 480 of file draw_r200.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_RangeCheckIndexes ( const srfTriangles_t tri)

Definition at line 671 of file tr_trisurf.cpp.

void R_ReallyFreeStaticTriSurf ( srfTriangles_t tri)

Definition at line 374 of file tr_trisurf.cpp.

void R_ReCreateWorldReferences ( void  )

Definition at line 815 of file tr_lightrun.cpp.

void R_ReferenceStaticTriSurfIndexes ( srfTriangles_t tri,
const srfTriangles_t reference 
)

Definition at line 645 of file tr_trisurf.cpp.

void R_ReferenceStaticTriSurfVerts ( srfTriangles_t tri,
const srfTriangles_t reference 
)

Definition at line 636 of file tr_trisurf.cpp.

void R_RegenerateWorld_f ( const idCmdArgs args)

Definition at line 863 of file tr_lightrun.cpp.

void R_ReloadARBPrograms_f ( const idCmdArgs args)

Definition at line 505 of file draw_arb2.cpp.

void R_ReloadGuis_f ( const idCmdArgs args)

Definition at line 197 of file tr_guisurf.cpp.

const idMaterial* R_RemapShaderBySkin ( const idMaterial shader,
const idDeclSkin customSkin,
const idMaterial customShader 
)

Definition at line 2117 of file RenderWorld.cpp.

void R_RemoveDegenerateTriangles ( srfTriangles_t tri)

Definition at line 1882 of file tr_trisurf.cpp.

void R_RemoveDuplicatedTriangles ( srfTriangles_t tri)

Definition at line 1842 of file tr_trisurf.cpp.

void R_RemoveUnecessaryViewLights ( void  )

Definition at line 1570 of file tr_light.cpp.

void R_RemoveUnusedVerts ( srfTriangles_t tri)

Definition at line 1942 of file tr_trisurf.cpp.

void R_RenderGuiSurf ( idUserInterface gui,
drawSurf_t drawSurf 
)

Definition at line 128 of file tr_guisurf.cpp.

void R_RenderView ( viewDef_t parms)

Definition at line 1095 of file tr_main.cpp.

void R_ResizeStaticTriSurfIndexes ( srfTriangles_t tri,
int  numIndexes 
)

Definition at line 610 of file tr_trisurf.cpp.

void R_ResizeStaticTriSurfShadowVerts ( srfTriangles_t tri,
int  numVerts 
)

Definition at line 623 of file tr_trisurf.cpp.

void R_ResizeStaticTriSurfVerts ( srfTriangles_t tri,
int  numVerts 
)

Definition at line 597 of file tr_trisurf.cpp.

void R_ReverseTriangles ( srfTriangles_t tri)

Definition at line 2069 of file tr_trisurf.cpp.

idScreenRect R_ScreenRectFromViewFrustumBounds ( const idBounds bounds)

Definition at line 151 of file tr_main.cpp.

void R_ScreenShot_f ( const idCmdArgs args)

Definition at line 1350 of file RenderSystem_init.cpp.

void R_SetColorMappings ( void  )

Definition at line 1738 of file RenderSystem_init.cpp.

viewEntity_t* R_SetEntityDefViewEntity ( idRenderEntityLocal def)

Definition at line 378 of file tr_light.cpp.

viewLight_t* R_SetLightDefViewLight ( idRenderLightLocal def)

Definition at line 458 of file tr_light.cpp.

void R_SetLightProject ( idPlane  lightProject[4],
const idVec3  origin,
const idVec3  targetPoint,
const idVec3  rightVector,
const idVec3  upVector,
const idVec3  start,
const idVec3  stop 
)

Definition at line 231 of file tr_lightrun.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_ShowTriSurfMemory_f ( const idCmdArgs args)

Definition at line 229 of file tr_trisurf.cpp.

void R_ShutdownFrameData ( void  )

Definition at line 220 of file tr_main.cpp.

void R_ShutdownTriSurfData ( void  )

Definition at line 188 of file tr_trisurf.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_StencilShot ( void  )

Definition at line 1410 of file RenderSystem_init.cpp.

void R_SurfaceToTextureAxis ( const srfTriangles_t tri,
idVec3 origin,
idVec3  axis[3] 
)

Definition at line 49 of file tr_guisurf.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.

int R_TriSurfMemory ( const srfTriangles_t tri)

Definition at line 290 of file tr_trisurf.cpp.

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_ARB2_DrawInteractions ( void  )

Definition at line 243 of file draw_arb2.cpp.

void RB_ARB_DrawInteractions ( void  )

Definition at line 522 of file draw_arb.cpp.

void RB_BakeTextureMatrixIntoTexgen ( idPlane  lightProject[3],
const float  textureMatrix[16] 
)
void RB_BeginDrawingView ( void  )

Definition at line 555 of file tr_render.cpp.

void RB_BindStageTexture ( const float shaderRegisters,
const textureStage_t texture,
const drawSurf_t surf 
)

Definition at line 410 of file tr_render.cpp.

void RB_BindVariableStageImage ( const textureStage_t texture,
const float shaderRegisters 
)

Definition at line 378 of file tr_render.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_CreateSingleDrawInteractions ( const drawSurf_t surf,
void(*)(const drawInteraction_t *)  DrawInteraction 
)

Definition at line 689 of file tr_render.cpp.

void RB_DetermineLightScale ( void  )

Definition at line 500 of file tr_render.cpp.

void RB_DrawBounds ( const idBounds bounds)

Definition at line 86 of file tr_rendertools.cpp.

void RB_DrawElementsImmediate ( const srfTriangles_t tri)

Definition at line 49 of file tr_render.cpp.

void RB_DrawElementsWithCounters ( const srfTriangles_t tri)

Definition at line 78 of file tr_render.cpp.

void RB_DrawShaderPasses ( drawSurf_t **  drawSurfs,
int  numDrawSurfs 
)
void RB_DrawShadowElementsWithCounters ( const srfTriangles_t tri,
int  numIndexes 
)

Definition at line 117 of file tr_render.cpp.

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

Definition at line 1719 of file tr_rendertools.cpp.

void RB_DrawView ( const void data)

Definition at line 849 of file tr_render.cpp.

void RB_EnterModelDepthHack ( float  depth)

Definition at line 195 of file tr_render.cpp.

void RB_EnterWeaponDepthHack ( )

Definition at line 176 of file tr_render.cpp.

void RB_ExecuteBackEndCommands ( const emptyCommand_t cmds)

Definition at line 600 of file tr_backend.cpp.

void RB_FinishStageTexture ( const textureStage_t texture,
const drawSurf_t surf 
)

Definition at line 451 of file tr_render.cpp.

void RB_GetShaderTextureMatrix ( const float shaderRegisters,
const textureStage_t texture,
float  matrix[16] 
)

Definition at line 325 of file tr_render.cpp.

void RB_LeaveDepthHack ( )

Definition at line 214 of file tr_render.cpp.

void RB_LoadShaderTextureMatrix ( const float shaderRegisters,
const textureStage_t texture 
)

Definition at line 362 of file tr_render.cpp.

void RB_LogComment ( const char *  comment,
  ... 
)
void RB_NV10_DrawInteractions ( void  )

Definition at line 624 of file draw_nv10.cpp.

void RB_NV20_DrawInteractions ( void  )

Definition at line 763 of file draw_nv20.cpp.

void RB_PolygonClear ( void  )

Definition at line 168 of file tr_rendertools.cpp.

void RB_R200_DrawInteractions ( void  )

Definition at line 278 of file draw_r200.cpp.

void RB_RenderDebugTools ( drawSurf_t **  drawSurfs,
int  numDrawSurfs 
)

Definition at line 2329 of file tr_rendertools.cpp.

void RB_RenderDrawSurfChainWithFunction ( const drawSurf_t drawSurfs,
void(*)(const drawSurf_t *)  triFunc_ 
)

Definition at line 280 of file tr_render.cpp.

void RB_RenderDrawSurfListWithFunction ( drawSurf_t **  drawSurfs,
int  numDrawSurfs,
void(*)(const drawSurf_t *)  triFunc_ 
)

Definition at line 232 of file tr_render.cpp.

void RB_RenderTriangleSurface ( const srfTriangles_t tri)

Definition at line 147 of file tr_render.cpp.

void RB_ScanStencilBuffer ( void  )

Definition at line 204 of file tr_rendertools.cpp.

void RB_SetDefaultGLState ( void  )

Definition at line 46 of file tr_backend.cpp.

void RB_SetGL2D ( void  )

Definition at line 423 of file tr_backend.cpp.

const shaderStage_t* RB_SetLightTexture ( const idRenderLightLocal light)
void RB_ShowDestinationAlpha ( void  )

Definition at line 191 of file tr_rendertools.cpp.

void void RB_ShowImages ( void  )

Definition at line 490 of file tr_backend.cpp.

void RB_ShowLightCount ( drawSurf_t **  drawSurfs,
int  numDrawSurfs 
)
void RB_ShowLights ( drawSurf_t **  drawSurfs,
int  numDrawSurfs 
)
void RB_ShowOverdraw ( void  )

Definition at line 302 of file tr_rendertools.cpp.

void RB_ShowTrace ( drawSurf_t **  drawSurfs,
int  numDrawSurfs 
)

Definition at line 353 of file tr_trace.cpp.

void RB_ShutdownDebugTools ( void  )

Definition at line 2381 of file tr_rendertools.cpp.

void RB_STD_DrawView ( void  )

Definition at line 1666 of file draw_common.cpp.

void RB_STD_FillDepthBuffer ( drawSurf_t **  drawSurfs,
int  numDrawSurfs 
)

Definition at line 521 of file draw_common.cpp.

void RB_STD_FogAllLights ( void  )

Definition at line 1532 of file draw_common.cpp.

void RB_STD_LightScale ( void  )

Definition at line 1598 of file draw_common.cpp.

void RB_StencilShadowPass ( const drawSurf_t drawSurfs)

Definition at line 1176 of file draw_common.cpp.

void RB_T_RenderTriangleSurface ( const drawSurf_t surf)

Definition at line 167 of file tr_render.cpp.

optimizedShadow_t SuperOptimizeOccluders ( idVec4 verts,
glIndex_t indexes,
int  numIndexes,
idPlane  projectionPlane,
idVec3  projectionOrigin 
)

Definition at line 1009 of file shadowopt3.cpp.

Variable Documentation

backEndState_t backEnd

Definition at line 35 of file tr_backend.cpp.

const float DEFAULT_FOG_DISTANCE = 500.0f

Definition at line 44 of file tr_local.h.

const int FALLOFF_TEXTURE_SIZE = 64

Definition at line 42 of file tr_local.h.

const float FOG_ENTER = (FOG_ENTER_SIZE+1.0f)/(FOG_ENTER_SIZE*2)

Definition at line 47 of file tr_local.h.

const int FOG_ENTER_SIZE = 64

Definition at line 46 of file tr_local.h.

frameData_t* frameData

Definition at line 34 of file tr_backend.cpp.

glconfig_t glConfig

Definition at line 41 of file RenderSystem_init.cpp.

const int GLS_ALPHAMASK = 0x00001000

Definition at line 1033 of file tr_local.h.

const int GLS_ATEST_BITS = 0x70000000

Definition at line 1045 of file tr_local.h.

const int GLS_ATEST_EQ_255 = 0x10000000

Definition at line 1042 of file tr_local.h.

const int GLS_ATEST_GE_128 = 0x40000000

Definition at line 1044 of file tr_local.h.

const int GLS_ATEST_LT_128 = 0x20000000

Definition at line 1043 of file tr_local.h.

const int GLS_BLUEMASK = 0x00000800

Definition at line 1032 of file tr_local.h.

Definition at line 1034 of file tr_local.h.

Definition at line 1047 of file tr_local.h.

const int GLS_DEPTHFUNC_ALWAYS = 0x00010000

Definition at line 1038 of file tr_local.h.

const int GLS_DEPTHFUNC_EQUAL = 0x00020000

Definition at line 1039 of file tr_local.h.

const int GLS_DEPTHFUNC_LESS = 0x0

Definition at line 1040 of file tr_local.h.

const int GLS_DEPTHMASK = 0x00000100

Definition at line 1029 of file tr_local.h.

const int GLS_DSTBLEND_BITS = 0x000000f0

Definition at line 1024 of file tr_local.h.

const int GLS_DSTBLEND_DST_ALPHA = 0x00000070

Definition at line 1022 of file tr_local.h.

const int GLS_DSTBLEND_ONE = 0x00000020

Definition at line 1017 of file tr_local.h.

const int GLS_DSTBLEND_ONE_MINUS_DST_ALPHA = 0x00000080

Definition at line 1023 of file tr_local.h.

const int GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA = 0x00000060

Definition at line 1021 of file tr_local.h.

const int GLS_DSTBLEND_ONE_MINUS_SRC_COLOR = 0x00000040

Definition at line 1019 of file tr_local.h.

const int GLS_DSTBLEND_SRC_ALPHA = 0x00000050

Definition at line 1020 of file tr_local.h.

const int GLS_DSTBLEND_SRC_COLOR = 0x00000030

Definition at line 1018 of file tr_local.h.

const int GLS_DSTBLEND_ZERO = 0x0

Definition at line 1016 of file tr_local.h.

const int GLS_GREENMASK = 0x00000400

Definition at line 1031 of file tr_local.h.

const int GLS_POLYMODE_LINE = 0x00002000

Definition at line 1036 of file tr_local.h.

const int GLS_REDMASK = 0x00000200

Definition at line 1030 of file tr_local.h.

const int GLS_SRCBLEND_ALPHA_SATURATE = 0x00000009

Definition at line 1013 of file tr_local.h.

const int GLS_SRCBLEND_BITS = 0x0000000f

Definition at line 1014 of file tr_local.h.

const int GLS_SRCBLEND_DST_ALPHA = 0x00000007

Definition at line 1011 of file tr_local.h.

const int GLS_SRCBLEND_DST_COLOR = 0x00000003

Definition at line 1007 of file tr_local.h.

const int GLS_SRCBLEND_ONE = 0x0

Definition at line 1006 of file tr_local.h.

const int GLS_SRCBLEND_ONE_MINUS_DST_ALPHA = 0x00000008

Definition at line 1012 of file tr_local.h.

const int GLS_SRCBLEND_ONE_MINUS_DST_COLOR = 0x00000004

Definition at line 1008 of file tr_local.h.

const int GLS_SRCBLEND_ONE_MINUS_SRC_ALPHA = 0x00000006

Definition at line 1010 of file tr_local.h.

const int GLS_SRCBLEND_SRC_ALPHA = 0x00000005

Definition at line 1009 of file tr_local.h.

const int GLS_SRCBLEND_ZERO = 0x00000001

Definition at line 1005 of file tr_local.h.

const int INITIAL_DRAWSURFS = 0x4000

Definition at line 508 of file tr_local.h.

const int MAX_CLIP_PLANES = 1

Definition at line 365 of file tr_local.h.

const int MAX_GUI_SURFACES = 1024

Definition at line 669 of file tr_local.h.

const int MAX_MULTITEXTURE_UNITS = 8

Definition at line 602 of file tr_local.h.

idCVar r_brightness
idCVar r_cgFragmentProfile
idCVar r_cgVertexProfile
idCVar r_checkBounds
idCVar r_clear
idCVar r_debugArrowStep
idCVar r_debugLineDepthTest
idCVar r_debugLineWidth
idCVar r_debugPolygonFilled
idCVar r_debugRenderToTexture
idCVar r_demonstrateBug
idCVar r_displayRefresh
idCVar r_ext_vertex_array_range
idCVar r_finish
idCVar r_flareSize
idCVar r_forceLoadImages
idCVar r_frontBuffer
idCVar r_fullscreen
idCVar r_gamma
idCVar r_glDriver
idCVar r_ignore
idCVar r_ignore2
idCVar r_ignoreGLErrors
idCVar r_jitter
idCVar r_jointNameOffset
idCVar r_jointNameScale
idCVar r_lightAllBackFaces
idCVar r_lightScale
idCVar r_lightSourceRadius
idCVar r_lockSurfaces
idCVar r_logFile
idCVar r_materialOverride
idCVar r_mode
idCVar r_multiSamples
idCVar r_offsetFactor
idCVar r_offsetUnits
idCVar r_orderIndexes
idCVar r_renderer
idCVar r_screenFraction
idCVar r_shadowPolygonFactor
idCVar r_shadowPolygonOffset
idCVar r_shadows
idCVar r_showAlloc
idCVar r_showCull
idCVar r_showDefs
idCVar r_showDemo
idCVar r_showDepth
idCVar r_showDominantTri
idCVar r_showDynamic
idCVar r_showEdges
idCVar r_showEntityScissors
idCVar r_showImages
idCVar r_showIntensity
idCVar r_showInteractionFrustums
idCVar r_showInteractions
idCVar r_showInteractionScissors
idCVar r_showLightCount
idCVar r_showLights
idCVar r_showLightScale
idCVar r_showLightScissors
idCVar r_showMemory
idCVar r_showNormals
idCVar r_showOverDraw
idCVar r_showPortals
idCVar r_showPrimitives
idCVar r_showShadowCount
idCVar r_showShadows
idCVar r_showSilhouette
idCVar r_showSkel
idCVar r_showSmp
idCVar r_showSurfaceInfo
idCVar r_showSurfaces
idCVar r_showTangentSpace
idCVar r_showTexturePolarity
idCVar r_showTextureVectors
idCVar r_showTrace
idCVar r_showTris
idCVar r_showUnsmoothedTangents
idCVar r_showUpdates
idCVar r_showVertexColor
idCVar r_showViewEntitys
idCVar r_singleArea
idCVar r_singleEntity
idCVar r_singleLight
idCVar r_singleSurface
idCVar r_singleTriangle
idCVar r_skipAmbient
idCVar r_skipBackEnd
idCVar r_skipBlendLights
idCVar r_skipBump
idCVar r_skipCopyTexture
idCVar r_skipDeforms
idCVar r_skipDiffuse
idCVar r_skipDynamicTextures
idCVar r_skipFogLights
idCVar r_skipFrontEnd
idCVar r_skipGuiShaders
idCVar r_skipInteractions
idCVar r_skipLightScale
idCVar r_skipNewAmbient
idCVar r_skipOverlays
idCVar r_skipParticles
idCVar r_skipPostProcess
idCVar r_skipRender
idCVar r_skipRenderContext
idCVar r_skipROQ
idCVar r_skipSpecular
idCVar r_skipSubviews
idCVar r_skipSuppress
idCVar r_skipTranslucent
idCVar r_skipUpdates
idCVar r_subviewOnly
idCVar r_swapInterval
idCVar r_testARBProgram
idCVar r_testGamma
idCVar r_testGammaBias
idCVar r_testStepGamma
idCVar r_useCachedDynamicModels
idCVar r_useClippedLightScissors
idCVar r_useCombinerDisplayLists
idCVar r_useConstantMaterials
idCVar r_useCulling
idCVar r_useDeferredTangents
idCVar r_useDepthBoundsTest
idCVar r_useEntityCallbacks
idCVar r_useEntityCulling
idCVar r_useEntityScissors
idCVar r_useExternalShadows
idCVar r_useFrustumFarDistance
idCVar r_useIndexBuffers
idCVar r_useInfiniteFarZ
idCVar r_useInteractionCulling
idCVar r_useInteractionScissors
idCVar r_useInteractionTable
idCVar r_useLightCulling
idCVar r_useLightPortalFlow
idCVar r_useLightScissors
idCVar r_useNodeCommonChildren
idCVar r_useNV20MonoLights
idCVar r_useOptimizedShadows
idCVar r_usePortals
idCVar r_usePreciseTriangleInteractions
idCVar r_useScissor
idCVar r_useShadowCulling
idCVar r_useShadowProjectedCull
idCVar r_useShadowSurfaceScissor
idCVar r_useShadowVertexProgram
idCVar r_useSilRemap
idCVar r_useStateCaching
idCVar r_useTripleTextureARB
idCVar r_useTurboShadow
idCVar r_useTwoSidedStencil
idCVar r_useVertexBuffers
idCVar r_znear
const int SMP_FRAMES = 1

Definition at line 40 of file tr_local.h.

Definition at line 33 of file RenderSystem.cpp.