#include "sw.h"
Go to the source code of this file.
Macros | |
#define | NUM_BEAM_SEGS 6 |
Functions | |
void | R_InitTurb (void) |
static void | R_Register (void) |
static void | R_UnRegister (void) |
void | R_ModeChanged (int width, int height, int flags, int rowbytes, void *pixels) |
qboolean | R_Init (qboolean total) |
void | R_Shutdown (qboolean total) |
void | R_NewMap (void) |
static void | R_MarkLeaves (void) |
static void | R_DrawNullModel (void) |
static int | R_DrawEntities (int translucent) |
static void | R_DrawEntitiesOnList (void) |
static int | R_BmodelCheckBBox (float *minmaxs) |
static mnode_t * | R_FindTopnode (vec3_t mins, vec3_t maxs) |
static void | RotatedBBox (vec3_t mins, vec3_t maxs, vec3_t angles, vec3_t tmins, vec3_t tmaxs) |
static void | R_DrawBEntitiesOnList (void) |
static void | R_EdgeDrawing (void) |
byte * | IMG_ReadPixels (int *width, int *height, int *rowbytes) |
void | R_RenderFrame (refdef_t *fd) |
void | R_BeginFrame (void) |
void | R_EndFrame (void) |
void | R_DrawBeam (entity_t *e) |
void | R_AddDecal (decal_t *d) |
#define NUM_BEAM_SEGS 6 |
Definition at line 768 of file main.c.
Referenced by R_RegisterFunctionsGL(), and R_RegisterFunctionsRTX().
void R_AddDecal | ( | decal_t * | d | ) |
Definition at line 923 of file main.c.
Referenced by R_RegisterFunctionsGL(), and R_RegisterFunctionsRTX().
Definition at line 858 of file main.c.
Referenced by R_RegisterFunctionsGL(), and R_RegisterFunctionsRTX().
|
static |
void R_DrawBeam | ( | entity_t * | e | ) |
Definition at line 863 of file main.c.
Referenced by R_RegisterFunctionsGL(), and R_RegisterFunctionsRTX().
|
static |
qboolean R_Init | ( | qboolean | total | ) |
Definition at line 234 of file main.c.
Referenced by CL_RestartFilesystem(), CL_RestartRefresh(), R_RegisterFunctionsGL(), and R_RegisterFunctionsRTX().
Definition at line 191 of file main.c.
Referenced by R_RegisterFunctionsGL(), and R_RegisterFunctionsRTX().
void R_RenderFrame | ( | refdef_t * | fd | ) |
Definition at line 803 of file main.c.
Referenced by R_RegisterFunctionsGL(), and R_RegisterFunctionsRTX().
void R_Shutdown | ( | qboolean | total | ) |
Definition at line 280 of file main.c.
Referenced by CL_RestartFilesystem(), CL_RestartRefresh(), R_RegisterFunctionsGL(), and R_RegisterFunctionsRTX().
Definition at line 186 of file main.c.
Referenced by R_Shutdown().
|
static |
vec3_t base_vpn |
Definition at line 50 of file main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_DrawBEntitiesOnList(), and R_SetupFrame().
vec3_t base_vright |
Definition at line 51 of file main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_DrawBEntitiesOnList(), and R_SetupFrame().
vec3_t base_vup |
Definition at line 49 of file main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_DrawBEntitiesOnList(), and R_SetupFrame().
fixed16_t bbextents |
Definition at line 120 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
fixed16_t bbextentt |
Definition at line 120 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
Definition at line 135 of file main.c.
Referenced by D_TurbulentSurf(), R_InitTurb(), and R_PolygonDrawSpans().
int c_surf |
Definition at line 42 of file main.c.
Referenced by D_CacheSurface(), and R_PrintTimes().
pixel_t* cacheblock |
Definition at line 122 of file main.c.
Referenced by D_DrawSpans16(), D_DrawTurbulent16(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), R_DrawPoly(), and R_PolygonDrawSpans().
int cachewidth |
Definition at line 123 of file main.c.
Referenced by D_DrawSpans16(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), R_DrawPoly(), R_DrawSpanletAlphaTestBlended(), R_DrawSpanletBlended(), and R_DrawSpanletOpaque().
model_t* currentmodel |
Definition at line 29 of file main.c.
Referenced by R_AliasPreparePoints(), R_AliasSetupFrames(), R_AliasSetupSkin(), R_DrawEntities(), and R_DrawSprite().
short* d_pzbuffer |
Definition at line 127 of file main.c.
Referenced by R_ApplySIRDAlgorithum(), R_ModeChanged(), R_SetupFrame(), and R_Shutdown().
int d_screenrowbytes |
Definition at line 126 of file main.c.
Referenced by R_DrawParticle(), R_PolysetSetUpAndScanLeftEdge(), and R_SetupFrame().
float d_sdivzorigin |
Definition at line 118 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
float d_sdivzstepu |
Definition at line 116 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
float d_sdivzstepv |
Definition at line 117 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
byte* d_spantable[MAXHEIGHT] |
Definition at line 130 of file main.c.
Referenced by D_DrawSpans16(), D_DrawTurbulent16(), D_FlatFillSurface(), R_DrawParticle(), R_PolygonDrawSpans(), R_PolysetSetUpAndScanLeftEdge(), and R_SetupFrame().
float d_tdivzorigin |
Definition at line 118 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
float d_tdivzstepu |
Definition at line 116 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
float d_tdivzstepv |
Definition at line 117 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
pixel_t* d_viewbuffer |
Definition at line 125 of file main.c.
Referenced by R_SetupFrame().
float d_ziorigin |
Definition at line 118 of file main.c.
Referenced by D_BackgroundSurf(), D_DrawflatSurfaces(), D_DrawSpans16(), D_DrawTurbulent16(), D_DrawZSpans(), D_DrawZSurfaces(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
float d_zistepu |
Definition at line 116 of file main.c.
Referenced by D_BackgroundSurf(), D_DrawflatSurfaces(), D_DrawSpans16(), D_DrawTurbulent16(), D_DrawZSpans(), D_DrawZSurfaces(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
float d_zistepv |
Definition at line 117 of file main.c.
Referenced by D_BackgroundSurf(), D_DrawflatSurfaces(), D_DrawSpans16(), D_DrawTurbulent16(), D_DrawZSpans(), D_DrawZSurfaces(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
int d_zrowbytes |
Definition at line 128 of file main.c.
Referenced by R_ModeChanged().
short* d_zspantable[MAXHEIGHT] |
Definition at line 131 of file main.c.
Referenced by D_DrawZSpans(), R_DrawParticle(), R_PolygonDrawSpans(), R_PolysetSetUpAndScanLeftEdge(), and R_SetupFrame().
int d_zwidth |
Definition at line 129 of file main.c.
Referenced by R_DrawParticle(), R_ModeChanged(), R_PolysetSetUpAndScanLeftEdge(), and R_SetupFrame().
Definition at line 134 of file main.c.
Referenced by D_WarpScreen(), and R_InitTurb().
int* pfrustum_indexes[4] |
Definition at line 70 of file main.c.
Referenced by R_BmodelCheckBBox(), R_RecursiveWorldNode(), and R_SetUpFrustumIndexes().
int r_clipflags |
Definition at line 44 of file main.c.
Referenced by R_DrawBEntitiesOnList(), and R_RenderBmodelFace().
int r_cnumsurfs |
Definition at line 43 of file main.c.
Referenced by R_EdgeDrawing(), and R_NewMap().
refcfg_t r_config |
Definition at line 24 of file main.c.
Referenced by CL_UpdateFrameTimes(), evaluate_reference_mode(), R_Init_RTX(), R_ModeChanged(), R_ModeChanged_GL(), and R_ModeChanged_RTX().
qboolean r_dowarp |
Definition at line 40 of file main.c.
Referenced by R_ApplySIRDAlgorithum(), R_RenderFrame(), and R_SetupFrame().
cvar_t* r_drawentities |
Definition at line 97 of file main.c.
Referenced by R_DrawBEntitiesOnList(), R_DrawEntitiesOnList(), and R_Register().
int r_drawnpolycount |
Definition at line 67 of file main.c.
Referenced by D_DrawSurfaces(), R_PrintTimes(), and R_SetupFrame().
cvar_t* r_drawworld |
Definition at line 96 of file main.c.
Referenced by R_Register(), and R_RenderWorld().
int r_framecount = 1 |
Definition at line 64 of file main.c.
Referenced by D_CacheSurface(), R_BuildLightMap(), R_ClipEdge(), R_DrawBEntitiesOnList(), R_EmitEdge(), R_EmitSkyBox(), R_MarkLights(), R_RecursiveWorldNode(), R_RenderFace(), and R_SetupFrame().
int r_frustum_indexes[4 *6] |
Definition at line 71 of file main.c.
Referenced by R_SetUpFrustumIndexes().
cvar_t* r_fullbright |
Definition at line 98 of file main.c.
Referenced by R_BuildLightMap(), R_LightPoint(), R_Register(), and R_SetupFrame().
cvar_t* r_lerpmodels |
Definition at line 99 of file main.c.
Referenced by R_AliasDrawModel(), and R_Register().
int r_maxedgesseen |
Definition at line 43 of file main.c.
Referenced by R_NewMap().
int r_maxsurfsseen |
Definition at line 43 of file main.c.
Referenced by R_NewMap().
refdef_t r_newrefdef |
Definition at line 28 of file main.c.
Referenced by _R_LightPoint(), D_CacheSurface(), D_CalcGradients(), D_DrawTurbulent16(), D_WarpScreen(), R_AddDynamicLights(), R_AliasSetupLighting(), R_BuildPolygonFromSurface(), R_DrawBEntitiesOnList(), R_DrawEntities(), R_DrawParticles(), R_EdgeDrawing(), R_LightPoint(), R_MarkLights(), R_PolygonDrawSpans(), R_RecursiveClipBPoly(), R_RecursiveWorldNode(), R_RenderFrame(), R_RenderWorld(), R_SetupFrame(), and R_ViewChanged().
cvar_t* r_novis |
Definition at line 100 of file main.c.
Referenced by R_MarkLeaves(), and R_Register().
int r_numallocatededges |
Definition at line 36 of file main.c.
Referenced by R_BeginEdgeFrame(), and R_NewMap().
int r_oldviewcluster |
Definition at line 74 of file main.c.
Referenced by R_BeginRegistration(), and R_MarkLeaves().
vec3_t r_origin |
Definition at line 52 of file main.c.
Referenced by D_DrawSurfaces(), D_SolidSurf(), D_TurbulentSurf(), R_AliasSetUpTransform(), R_BuildPolygonFromSurface(), R_ClipAndDrawPoly(), R_DrawAlphaSurfaces(), R_DrawBEntitiesOnList(), R_DrawEntities(), R_DrawParticle(), R_EmitSkyBox(), R_IMFlatShadedQuad(), R_RenderWorld(), and R_SetupFrame().
int r_outofedges |
Definition at line 38 of file main.c.
Referenced by R_RenderBmodelFace(), R_RenderFace(), R_RenderFrame(), and R_SetupFrame().
int r_outofsurfaces |
Definition at line 37 of file main.c.
Referenced by R_RenderBmodelFace(), R_RenderFace(), R_RenderFrame(), and R_SetupFrame().
int r_polycount |
Definition at line 66 of file main.c.
Referenced by R_PrintTimes(), R_RenderBmodelFace(), R_RenderFace(), and R_SetupFrame().
oldrefdef_t r_refdef |
Definition at line 57 of file main.c.
Referenced by D_CalcGradients(), D_SolidSurf(), D_WarpScreen(), R_Alias_clip_bottom(), R_Alias_clip_left(), R_Alias_clip_right(), R_Alias_clip_top(), R_AliasClip(), R_AliasClipTriangle(), R_AliasDrawModel(), R_AliasProjectAndClipTestFinalVert(), R_BeginEdgeFrame(), R_ClipAndDrawPoly(), R_DrawParticle(), R_DrawParticles(), R_EmitEdge(), R_PolygonCalculateGradients(), R_PolygonScanRightEdge(), R_RenderBmodelFace(), R_RenderFace(), R_ScanEdges(), and R_ViewChanged().
cvar_t* r_speeds |
Definition at line 102 of file main.c.
Referenced by R_Register(), and R_RenderFrame().
float r_time1 |
Definition at line 35 of file main.c.
Referenced by R_PrintTimes(), and R_RenderFrame().
int r_viewcluster |
Definition at line 74 of file main.c.
Referenced by R_MarkLeaves(), R_NewMap(), and R_SetupFrame().
mleaf_t* r_viewleaf |
Definition at line 73 of file main.c.
Referenced by R_SetupFrame().
int r_visframecount |
Definition at line 65 of file main.c.
Referenced by R_FindTopnode(), R_MarkLeaves(), R_RecursiveClipBPoly(), and R_RecursiveWorldNode().
byte r_warpbuffer[WARP_WIDTH *WARP_HEIGHT *VID_BYTES] |
Definition at line 33 of file main.c.
Referenced by D_WarpScreen(), and R_SetupFrame().
int r_wholepolycount |
Definition at line 68 of file main.c.
Referenced by R_SetupFrame().
entity_t r_worldentity |
Definition at line 26 of file main.c.
Referenced by D_SolidSurf(), R_AddDynamicLights(), and R_RenderWorld().
bsp_t* r_worldmodel |
Definition at line 31 of file main.c.
Referenced by _R_LightPoint(), R_BeginRegistration(), R_DrawBEntitiesOnList(), R_FindTopnode(), R_LightPoint(), R_MarkLeaves(), R_RenderFrame(), R_RenderWorld(), R_SetupFrame(), and R_Shutdown().
fixed16_t sadjust |
Definition at line 120 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
cplane_t screenedge[4] |
Definition at line 59 of file main.c.
Referenced by R_TransformFrustum(), and R_ViewChanged().
Definition at line 133 of file main.c.
Referenced by D_TurbulentSurf(), R_InitTurb(), and R_PolygonDrawSpans().
cvar_t* sw_aliasstats |
Definition at line 76 of file main.c.
Referenced by R_Register(), and R_RenderFrame().
cvar_t* sw_clearcolor |
Definition at line 77 of file main.c.
Referenced by D_BackgroundSurf(), and R_Register().
cvar_t* sw_drawflat |
Definition at line 78 of file main.c.
Referenced by D_DrawSurfaces(), and R_Register().
cvar_t* sw_draworder |
Definition at line 79 of file main.c.
Referenced by R_BeginEdgeFrame(), and R_Register().
cvar_t* sw_drawsird |
Definition at line 93 of file main.c.
Referenced by D_DrawSurfaces(), R_ApplySIRDAlgorithum(), R_Register(), and R_RenderFrame().
cvar_t* sw_dynamic |
Definition at line 86 of file main.c.
Referenced by R_Register(), and R_RenderFrame().
cvar_t* sw_lockpvs |
Definition at line 88 of file main.c.
Referenced by R_MarkLeaves(), and R_Register().
cvar_t* sw_maxedges |
Definition at line 80 of file main.c.
Referenced by R_NewMap(), and R_Register().
cvar_t* sw_maxsurfs |
Definition at line 81 of file main.c.
Referenced by R_NewMap(), and R_Register().
cvar_t* sw_modulate |
Definition at line 87 of file main.c.
Referenced by D_CacheSurface(), R_AddDynamicLights(), R_LightPoint(), and R_Register().
cvar_t* sw_reportedgeout |
Definition at line 82 of file main.c.
Referenced by R_Register(), and R_RenderFrame().
cvar_t* sw_reportsurfout |
Definition at line 83 of file main.c.
Referenced by R_Register(), and R_RenderFrame().
cvar_t* sw_surfcacheoverride |
Definition at line 84 of file main.c.
Referenced by R_InitCaches(), and R_ModeChanged().
cvar_t* sw_waterwarp |
Definition at line 85 of file main.c.
Referenced by R_Register(), and R_SetupFrame().
fixed16_t tadjust |
Definition at line 120 of file main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), D_DrawTurbulent16(), R_PolygonCalculateGradients(), and R_PolygonDrawSpans().
viddef_t vid |
Definition at line 22 of file main.c.
Referenced by D_WarpScreen(), IMG_ReadPixels(), R_ApplySIRDAlgorithum(), R_DrawFill32(), R_DrawFill8(), R_DrawFixedData(), R_DrawStretchData(), R_InitCaches(), R_ModeChanged(), R_SetupFrame(), and R_TileClear().
cvar_t* vid_gamma |
Definition at line 104 of file main.c.
Referenced by R_BuildGammaTable(), and R_Register().
vec3_t vpn |
Definition at line 50 of file main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_AliasSetUpTransform(), R_DrawBEntitiesOnList(), R_DrawParticles(), R_DrawSprite(), R_RotateBmodel(), R_SetupFrame(), R_TransformFrustum(), and R_TransformVector().
vec3_t vright |
Definition at line 51 of file main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_AliasSetUpTransform(), R_DrawBEntitiesOnList(), R_DrawParticles(), R_DrawSprite(), R_RotateBmodel(), R_SetupFrame(), R_TransformFrustum(), and R_TransformVector().
vec3_t vup |
Definition at line 49 of file main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_AliasSetUpTransform(), R_DrawBEntitiesOnList(), R_DrawParticles(), R_DrawSprite(), R_RotateBmodel(), R_SetupFrame(), R_TransformFrustum(), and R_TransformVector().