#include "r_local.h"
Go to the source code of this file.
Macros | |
#define | STRINGER(x) "x" |
#define | NUM_BEAM_SEGS 6 |
#define NUM_BEAM_SEGS 6 |
refexport_t GetRefAPI | ( | refimport_t | rimp | ) |
void R_BeginFrame | ( | float | camera_separation | ) |
Definition at line 1099 of file r_main.c.
Referenced by GetRefAPI(), and R_Init().
int R_BmodelCheckBBox | ( | float * | minmaxs | ) |
void R_CinematicSetPalette | ( | const unsigned char * | palette | ) |
Definition at line 1245 of file r_main.c.
Referenced by R_DrawEntitiesOnList().
void R_GammaCorrectAndSetPalette | ( | const unsigned char * | palette | ) |
Definition at line 1160 of file r_main.c.
Referenced by R_BeginFrame(), R_CalcPalette(), R_CinematicSetPalette(), R_InitGraphics(), and SWimp_SetMode().
struct image_s* R_RegisterSkin | ( | char * | name | ) |
Definition at line 564 of file r_image.c.
Referenced by GetRefAPI().
void Sys_Error | ( | char * | error, |
... | |||
) |
float aliasxscale |
Definition at line 79 of file r_main.c.
Referenced by R_AliasDrawModel(), R_AliasProjectAndClipTestFinalVert(), and R_ViewChanged().
vec3_t base_vpn |
Definition at line 67 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
vec3_t base_vright |
Definition at line 68 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
vec3_t base_vup |
Definition at line 66 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
fixed16_t bbextents |
Definition at line 177 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
int c_surf |
Definition at line 58 of file r_main.c.
Referenced by D_CacheSurface(), and R_PrintTimes().
pixel_t* cacheblock |
Definition at line 179 of file r_main.c.
Referenced by D_DrawSpans16(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), NonTurbulent8(), R_DrawPoly(), R_PolygonDrawSpans(), and Turbulent8().
int cachewidth |
Definition at line 180 of file r_main.c.
Referenced by D_DrawSpans16(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), R_DrawPoly(), R_DrawSpanlet33(), R_DrawSpanlet33Stipple(), R_DrawSpanlet66(), R_DrawSpanlet66Stipple(), and R_DrawSpanletOpaque().
model_t* currentmodel |
Definition at line 37 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), and R_DrawEntitiesOnList().
unsigned d_8to24table[256] |
Definition at line 27 of file r_main.c.
Referenced by Draw_GetPalette(), R_BeginFrame(), R_CalcPalette(), R_CinematicSetPalette(), and R_InitGraphics().
short* d_pzbuffer |
Definition at line 182 of file r_main.c.
Referenced by D_DrawZSpans(), D_ViewChanged(), R_DrawParticle(), R_InitGraphics(), R_PolygonDrawSpans(), R_RasterizeAliasPolySmooth(), and R_Shutdown().
float d_sdivzorigin |
Definition at line 175 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
float d_sdivzstepu |
Definition at line 173 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
float d_sdivzstepv |
Definition at line 174 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
int d_spanpixcount |
Definition at line 93 of file r_main.c.
Referenced by R_SetupFrame().
pixel_t* d_viewbuffer |
Definition at line 181 of file r_main.c.
Referenced by D_DrawSpans16(), D_FlatFillSurface(), NonTurbulent8(), R_DrawParticle(), R_PolygonDrawSpans(), R_RasterizeAliasPolySmooth(), R_SetupFrame(), and Turbulent8().
unsigned int d_zrowbytes |
Definition at line 183 of file r_main.c.
Referenced by D_ViewChanged().
float da_time1 |
Definition at line 106 of file r_main.c.
Referenced by R_PrintDSpeeds(), and R_RenderFrame().
float da_time2 |
Definition at line 106 of file r_main.c.
Referenced by R_RenderFrame().
float db_time1 |
Definition at line 106 of file r_main.c.
Referenced by R_EdgeDrawing().
float db_time2 |
Definition at line 106 of file r_main.c.
Referenced by R_EdgeDrawing().
float de_time1 |
Definition at line 107 of file r_main.c.
Referenced by R_RenderFrame().
float de_time2 |
Definition at line 107 of file r_main.c.
Referenced by R_RenderFrame().
float dp_time1 |
Definition at line 106 of file r_main.c.
Referenced by R_PrintDSpeeds(), and R_RenderFrame().
float dp_time2 |
Definition at line 106 of file r_main.c.
Referenced by R_RenderFrame().
int* pfrustum_indexes[4] |
Definition at line 98 of file r_main.c.
Referenced by R_BmodelCheckBBox(), R_RecursiveWorldNode(), and R_SetUpFrustumIndexes().
float r_aliasuvscale = 1.0 |
Definition at line 50 of file r_main.c.
Referenced by R_Init(), and R_ViewChanged().
int r_clipflags |
Definition at line 61 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), and R_RenderBmodelFace().
int r_cnumsurfs |
Definition at line 59 of file r_main.c.
Referenced by R_EdgeDrawing(), and R_NewMap().
qboolean r_dowarp |
Definition at line 54 of file r_main.c.
Referenced by R_RenderFrame(), and R_SetupFrame().
cvar_t* r_drawentities |
Definition at line 127 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), R_DrawEntitiesOnList(), R_Register(), and R_SetLightLevel().
int r_drawnpolycount |
Definition at line 95 of file r_main.c.
Referenced by D_DrawSurfaces(), R_PrintTimes(), and R_SetupFrame().
cvar_t* r_drawworld |
Definition at line 126 of file r_main.c.
Referenced by R_Register().
cvar_t* r_dspeeds |
Definition at line 128 of file r_main.c.
Referenced by R_EdgeDrawing(), R_Register(), and R_RenderFrame().
int r_framecount = 1 |
Definition at line 91 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
int r_frustum_indexes[4 *6] |
Definition at line 99 of file r_main.c.
Referenced by R_SetUpFrustumIndexes().
cvar_t* r_fullbright |
Definition at line 129 of file r_main.c.
Referenced by R_Register().
cvar_t* r_lefthand |
Definition at line 111 of file r_main.c.
Referenced by R_Register().
cvar_t* r_lerpmodels |
Definition at line 130 of file r_main.c.
Referenced by R_Register().
cvar_t* r_lightlevel |
Definition at line 134 of file r_main.c.
Referenced by R_Register(), and R_SetLightLevel().
int r_maxedgesseen |
Definition at line 59 of file r_main.c.
Referenced by R_NewMap().
int r_maxsurfsseen |
Definition at line 59 of file r_main.c.
Referenced by R_NewMap().
refdef_t r_newrefdef |
Definition at line 36 of file r_main.c.
Referenced by R_CalcPalette(), R_DrawBEntitiesOnList(), R_DrawEntitiesOnList(), R_EdgeDrawing(), R_RenderFrame(), and R_SetLightLevel().
byte r_notexture_buffer[1024] |
Definition at line 189 of file r_main.c.
Referenced by R_InitTextures().
image_t* r_notexture_mip |
Definition at line 104 of file r_main.c.
Referenced by Mod_LoadTexinfo(), R_InitTextures(), and R_LoadWal().
cvar_t* r_novis |
Definition at line 131 of file r_main.c.
Referenced by R_MarkLeaves(), and R_Register().
int r_numallocatededges |
Definition at line 49 of file r_main.c.
Referenced by R_BeginEdgeFrame(), and R_NewMap().
int r_oldviewcluster |
Definition at line 102 of file r_main.c.
Referenced by R_MarkLeaves().
vec3_t r_origin |
Definition at line 69 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), and R_DrawEntitiesOnList().
int r_outofedges |
Definition at line 52 of file r_main.c.
Referenced by R_RenderBmodelFace(), R_RenderFace(), R_RenderFrame(), and R_SetupFrame().
int r_outofsurfaces |
Definition at line 51 of file r_main.c.
Referenced by R_RenderBmodelFace(), R_RenderFace(), R_RenderFrame(), and R_SetupFrame().
mvertex_t* r_pcurrentvertbase |
Definition at line 56 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), R_DrawSolidClippedSubmodelPolygons(), R_RenderFace(), and R_RenderWorld().
int r_polycount |
Definition at line 94 of file r_main.c.
Referenced by R_PrintTimes(), R_RenderBmodelFace(), R_RenderFace(), and R_SetupFrame().
oldrefdef_t r_refdef |
Definition at line 74 of file r_main.c.
Referenced by D_ViewChanged(), D_WarpScreen(), R_Alias_clip_bottom(), R_Alias_clip_left(), R_Alias_clip_right(), R_Alias_clip_top(), R_AliasClip(), R_AliasClipTriangle(), R_AliasProjectAndClipTestFinalVert(), R_BeginEdgeFrame(), R_EmitEdge(), R_Init(), R_PolygonScanRightEdge(), R_RenderFrame(), R_ScanEdges(), R_SetupFrame(), and R_ViewChanged().
int r_screenwidth |
Definition at line 81 of file r_main.c.
Referenced by D_DrawSpans16(), D_FlatFillSurface(), D_ViewChanged(), NonTurbulent8(), R_DrawParticle(), R_RasterizeAliasPolySmooth(), R_SetupFrame(), and Turbulent8().
int r_skysideimage[6] = {5, 2, 4, 1, 0, 3} |
Definition at line 1302 of file r_main.c.
Referenced by R_SetSky().
mtexinfo_t r_skytexinfo[6] |
Definition at line 70 of file r_rast.c.
Referenced by R_EmitSkyBox(), R_InitSkyBox(), and R_SetSky().
cvar_t* r_speeds |
Definition at line 133 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
qboolean r_surfsonstack |
Definition at line 60 of file r_main.c.
Referenced by R_EdgeDrawing(), and R_NewMap().
float r_time1 |
Definition at line 48 of file r_main.c.
Referenced by R_PrintDSpeeds(), R_PrintTimes(), and R_RenderFrame().
int r_viewcluster |
Definition at line 102 of file r_main.c.
Referenced by R_MarkLeaves(), and R_NewMap().
mleaf_t* r_viewleaf |
Definition at line 101 of file r_main.c.
Referenced by R_SetupFrame().
alight_t r_viewlighting = {128, 192, viewlightvec} |
int r_visframecount |
Definition at line 92 of file r_main.c.
Referenced by R_FindTopnode(), and R_MarkLeaves().
byte r_warpbuffer[WARP_WIDTH *WARP_HEIGHT] |
Definition at line 41 of file r_main.c.
Referenced by D_WarpScreen(), and R_SetupFrame().
int r_wholepolycount |
Definition at line 96 of file r_main.c.
Referenced by R_SetupFrame().
entity_t r_worldentity |
Definition at line 29 of file r_main.c.
Referenced by D_SolidSurf(), and R_RenderWorld().
model_t* r_worldmodel |
Definition at line 39 of file r_main.c.
Referenced by R_FindTopnode(), R_MarkLeaves(), and R_RenderFrame().
refimport_t ri |
Definition at line 25 of file r_main.c.
Referenced by Com_Printf(), Draw_GetPalette(), GetRefAPI(), R_BeginFrame(), R_Init(), R_Register(), R_RenderFrame(), R_UnRegister(), and Sys_Error().
float rw_time1 |
Definition at line 106 of file r_main.c.
Referenced by R_EdgeDrawing().
float rw_time2 |
Definition at line 106 of file r_main.c.
Referenced by R_EdgeDrawing().
fixed16_t sadjust |
Definition at line 177 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
mplane_t screenedge[4] |
Definition at line 86 of file r_main.c.
Referenced by R_TransformFrustum(), and R_ViewChanged().
float se_time1 |
Definition at line 107 of file r_main.c.
Referenced by R_EdgeDrawing(), and R_PrintDSpeeds().
float se_time2 |
Definition at line 107 of file r_main.c.
Referenced by R_RenderFrame().
vec3_t skyaxis |
Definition at line 33 of file r_main.c.
Referenced by R_SetSky().
char skyname[MAX_QPATH] |
Definition at line 31 of file r_main.c.
Referenced by R_SetSky().
float skyrotate |
Definition at line 32 of file r_main.c.
Referenced by R_SetSky().
char* suf[6] = {"rt", "bk", "lf", "ft", "up", "dn"} |
Definition at line 1301 of file r_main.c.
Referenced by R_SetSky().
cvar_t* sw_aliasstats |
Definition at line 112 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
cvar_t* sw_allow_modex |
Definition at line 113 of file r_main.c.
Referenced by DDRAW_Init(), and R_Register().
cvar_t* sw_clearcolor |
Definition at line 114 of file r_main.c.
Referenced by D_BackgroundSurf(), D_ViewChanged(), and R_Register().
cvar_t* sw_drawflat |
Definition at line 115 of file r_main.c.
Referenced by D_DrawSurfaces(), and R_Register().
cvar_t* sw_draworder |
Definition at line 116 of file r_main.c.
Referenced by R_BeginEdgeFrame(), and R_Register().
cvar_t* sw_lockpvs |
Definition at line 140 of file r_main.c.
Referenced by R_MarkLeaves(), and R_Register().
cvar_t* sw_maxedges |
Definition at line 117 of file r_main.c.
Referenced by R_NewMap(), and R_Register().
cvar_t* sw_maxsurfs |
Definition at line 118 of file r_main.c.
Referenced by R_NewMap(), and R_Register().
cvar_t* sw_mode |
Definition at line 119 of file r_main.c.
Referenced by R_BeginFrame(), and R_Register().
cvar_t* sw_reportedgeout |
Definition at line 120 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
cvar_t* sw_reportsurfout |
Definition at line 121 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
swstate_t sw_state |
Definition at line 43 of file r_main.c.
Referenced by DDRAW_Init(), Draw_BuildGammaTable(), R_BeginFrame(), R_GammaCorrectAndSetPalette(), R_ScreenShot_f(), SWimp_EndFrame(), SWimp_SetMode(), and SWimp_SetPalette().
cvar_t* sw_stipplealpha |
Definition at line 122 of file r_main.c.
Referenced by R_Register().
cvar_t* sw_surfcacheoverride |
Definition at line 123 of file r_main.c.
Referenced by R_InitCaches(), and R_Register().
cvar_t* sw_waterwarp |
Definition at line 124 of file r_main.c.
Referenced by R_Register(), and R_SetupFrame().
float verticalFieldOfView |
Definition at line 83 of file r_main.c.
Referenced by R_ViewChanged().
viddef_t vid |
Definition at line 24 of file r_main.c.
Referenced by Draw_GetPalette(), R_BeginFrame(), R_CinematicSetPalette(), R_InitGraphics(), and R_Shutdown().
cvar_t* vid_fullscreen |
Definition at line 136 of file r_main.c.
Referenced by R_BeginFrame(), and R_Register().
cvar_t* vid_gamma |
Definition at line 137 of file r_main.c.
Referenced by Draw_BuildGammaTable(), R_BeginFrame(), and R_Register().
vec3_t vpn |
Definition at line 67 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
vec3_t vright |
Definition at line 68 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
vec3_t vup |
Definition at line 66 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
float xcenter |
Definition at line 75 of file r_main.c.
Referenced by D_CalcGradients(), R_ClipAndDrawPoly(), R_DrawParticle(), R_EmitEdge(), R_PolygonCalculateGradients(), R_RenderBmodelFace(), R_RenderFace(), and R_ViewChanged().
float xOrigin |
Definition at line 84 of file r_main.c.
Referenced by R_ViewChanged().
float xscale |
Definition at line 76 of file r_main.c.
Referenced by D_ViewChanged(), R_ClipAndDrawPoly(), R_EmitEdge(), and R_ViewChanged().
float xscaleinv |
Definition at line 77 of file r_main.c.
Referenced by D_CalcGradients(), R_PolygonCalculateGradients(), R_RenderBmodelFace(), R_RenderFace(), and R_ViewChanged().
float xscaleshrink |
Definition at line 78 of file r_main.c.
Referenced by R_DrawParticles(), and R_ViewChanged().