#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 1177 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 1342 of file r_main.c.
Referenced by R_DrawEntitiesOnList().
Definition at line 1249 of file r_main.c.
Referenced by GetRefAPI(), and QVk_EndFrame().
void R_GammaCorrectAndSetPalette | ( | const unsigned char * | palette | ) |
Definition at line 1257 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 550 of file r_image.c.
Referenced by GetRefAPI().
void Sys_Error | ( | char * | error, |
... | |||
) |
float aliasxscale |
Definition at line 85 of file r_main.c.
Referenced by R_AliasDrawModel(), R_AliasProjectAndClipTestFinalVert(), and R_ViewChanged().
vec3_t base_vpn |
Definition at line 73 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
vec3_t base_vright |
Definition at line 74 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
vec3_t base_vup |
Definition at line 72 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
fixed16_t bbextents |
Definition at line 192 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
int c_surf |
Definition at line 64 of file r_main.c.
Referenced by D_CacheSurface(), and R_PrintTimes().
pixel_t* cacheblock |
Definition at line 194 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 195 of file r_main.c.
Referenced by D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), R_DrawPoly(), R_DrawSpanlet33(), R_DrawSpanlet33Stipple(), R_DrawSpanlet66(), R_DrawSpanlet66Stipple(), and R_DrawSpanletOpaque().
int coloredlights |
Definition at line 156 of file r_main.c.
Referenced by D_CacheSurface(), Mod_LoadBrushModel(), Mod_LoadFaces(), R_AliasPreparePoints(), R_DrawSurface(), and R_PolysetDrawSpans8_Opaque_Coloured().
model_t* currentmodel |
Definition at line 39 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), and R_DrawEntitiesOnList().
unsigned d_8to24tabble[256] |
Definition at line 28 of file r_main.c.
Referenced by Draw_8to24().
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 197 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 190 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
float d_sdivzstepu |
Definition at line 188 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
float d_sdivzstepv |
Definition at line 189 of file r_main.c.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
int d_spanpixcount |
Definition at line 99 of file r_main.c.
Referenced by R_SetupFrame().
pixel_t* d_viewbuffer |
Definition at line 196 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 198 of file r_main.c.
Referenced by D_ViewChanged().
float da_time1 |
Definition at line 112 of file r_main.c.
Referenced by R_PrintDSpeeds(), and R_RenderFrame().
float da_time2 |
Definition at line 112 of file r_main.c.
Referenced by R_RenderFrame().
float db_time1 |
Definition at line 112 of file r_main.c.
Referenced by R_EdgeDrawing().
float db_time2 |
Definition at line 112 of file r_main.c.
Referenced by R_EdgeDrawing().
float de_time1 |
Definition at line 113 of file r_main.c.
Referenced by R_RenderFrame().
float de_time2 |
Definition at line 113 of file r_main.c.
Referenced by R_RenderFrame().
float dp_time1 |
Definition at line 112 of file r_main.c.
Referenced by R_PrintDSpeeds(), and R_RenderFrame().
float dp_time2 |
Definition at line 112 of file r_main.c.
Referenced by R_RenderFrame().
int* pfrustum_indexes[4] |
Definition at line 104 of file r_main.c.
Referenced by R_BmodelCheckBBox(), R_RecursiveWorldNode(), and R_SetUpFrustumIndexes().
float r_aliasuvscale = 1.0 |
Definition at line 56 of file r_main.c.
Referenced by R_Init(), and R_ViewChanged().
int r_clipflags |
Definition at line 67 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), and R_RenderBmodelFace().
int r_cnumsurfs |
Definition at line 65 of file r_main.c.
Referenced by R_EdgeDrawing(), and R_NewMap().
cvar_t* r_coloredlights |
Definition at line 154 of file r_main.c.
Referenced by Mod_LoadBrushModel(), and R_Register().
cvar_t* r_customheight |
Definition at line 152 of file r_main.c.
Referenced by R_BeginFrame(), and R_Register().
cvar_t* r_customwidth |
Definition at line 151 of file r_main.c.
Referenced by R_BeginFrame(), and R_Register().
qboolean r_dowarp |
Definition at line 60 of file r_main.c.
Referenced by R_RenderFrame(), and R_SetupFrame().
cvar_t* r_drawentities |
Definition at line 135 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), R_DrawEntitiesOnList(), R_Register(), and R_SetLightLevel().
int r_drawnpolycount |
Definition at line 101 of file r_main.c.
Referenced by D_DrawSurfaces(), R_PrintTimes(), and R_SetupFrame().
cvar_t* r_drawworld |
Definition at line 134 of file r_main.c.
Referenced by R_Register().
cvar_t* r_dspeeds |
Definition at line 136 of file r_main.c.
Referenced by R_EdgeDrawing(), R_Register(), and R_RenderFrame().
int r_framecount = 1 |
Definition at line 97 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
int r_frustum_indexes[4 *6] |
Definition at line 105 of file r_main.c.
Referenced by R_SetUpFrustumIndexes().
cvar_t* r_fullbright |
Definition at line 137 of file r_main.c.
Referenced by R_Register().
cvar_t* r_lefthand |
Definition at line 117 of file r_main.c.
Referenced by R_Register().
cvar_t* r_lerpmodels |
Definition at line 138 of file r_main.c.
Referenced by R_Register().
cvar_t* r_lightlevel |
Definition at line 142 of file r_main.c.
Referenced by R_Register(), and R_SetLightLevel().
cvar_t* r_lightsaturation |
Definition at line 155 of file r_main.c.
Referenced by Draw_InitRGBMap(), and R_Register().
int r_maxedgesseen |
Definition at line 65 of file r_main.c.
Referenced by R_NewMap().
int r_maxsurfsseen |
Definition at line 65 of file r_main.c.
Referenced by R_NewMap().
refdef_t r_newrefdef |
Definition at line 38 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 204 of file r_main.c.
Referenced by R_InitTextures().
image_t* r_notexture_mip |
Definition at line 110 of file r_main.c.
Referenced by Mod_LoadTexinfo(), R_InitTextures(), and R_LoadWal().
cvar_t* r_novis |
Definition at line 139 of file r_main.c.
Referenced by R_MarkLeaves(), and R_Register().
int r_numallocatededges |
Definition at line 55 of file r_main.c.
Referenced by R_BeginEdgeFrame(), and R_NewMap().
int r_oldviewcluster |
Definition at line 108 of file r_main.c.
Referenced by R_MarkLeaves().
vec3_t r_origin |
Definition at line 75 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), and R_DrawEntitiesOnList().
int r_outofedges |
Definition at line 58 of file r_main.c.
Referenced by R_RenderBmodelFace(), R_RenderFace(), R_RenderFrame(), and R_SetupFrame().
int r_outofsurfaces |
Definition at line 57 of file r_main.c.
Referenced by R_RenderBmodelFace(), R_RenderFace(), R_RenderFrame(), and R_SetupFrame().
mvertex_t* r_pcurrentvertbase |
Definition at line 62 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), R_DrawSolidClippedSubmodelPolygons(), R_RenderFace(), and R_RenderWorld().
int r_polycount |
Definition at line 100 of file r_main.c.
Referenced by R_PrintTimes(), R_RenderBmodelFace(), R_RenderFace(), and R_SetupFrame().
oldrefdef_t r_refdef |
Definition at line 80 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_AliasClipTriangleRGB(), R_AliasProjectAndClipTestFinalVert(), R_BeginEdgeFrame(), R_BuildLightMapRGB(), R_EmitEdge(), R_Init(), R_PolygonScanRightEdge(), R_RenderFrame(), R_ScanEdges(), R_SetupFrame(), and R_ViewChanged().
int r_screenwidth |
Definition at line 87 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 1399 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 141 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
qboolean r_surfsonstack |
Definition at line 66 of file r_main.c.
Referenced by R_EdgeDrawing(), and R_NewMap().
float r_time1 |
Definition at line 54 of file r_main.c.
Referenced by R_PrintDSpeeds(), R_PrintTimes(), and R_RenderFrame().
int r_viewcluster |
Definition at line 108 of file r_main.c.
Referenced by R_MarkLeaves(), and R_NewMap().
mleaf_t* r_viewleaf |
Definition at line 107 of file r_main.c.
Referenced by R_SetupFrame().
alight_t r_viewlighting = { 128, 192, viewlightvec } |
int r_visframecount |
Definition at line 98 of file r_main.c.
Referenced by R_FindTopnode(), and R_MarkLeaves().
byte* r_warpbuffer |
Definition at line 45 of file r_main.c.
Referenced by D_WarpScreen(), R_InitGraphics(), R_RenderFrame(), R_SetupFrame(), and R_Shutdown().
int r_warpheight |
Definition at line 47 of file r_main.c.
Referenced by R_InitGraphics(), and R_SetupFrame().
int r_warpwidth |
Definition at line 46 of file r_main.c.
Referenced by D_WarpScreen(), R_InitGraphics(), and R_SetupFrame().
int r_wholepolycount |
Definition at line 102 of file r_main.c.
Referenced by R_SetupFrame().
entity_t r_worldentity |
Definition at line 30 of file r_main.c.
Referenced by D_SolidSurf(), and R_RenderWorld().
model_t* r_worldmodel |
Definition at line 41 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 112 of file r_main.c.
Referenced by R_EdgeDrawing().
float rw_time2 |
Definition at line 112 of file r_main.c.
Referenced by R_EdgeDrawing().
fixed16_t sadjust |
Definition at line 192 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 92 of file r_main.c.
Referenced by R_TransformFrustum(), and R_ViewChanged().
float se_time1 |
Definition at line 113 of file r_main.c.
Referenced by R_EdgeDrawing(), and R_PrintDSpeeds().
float se_time2 |
Definition at line 113 of file r_main.c.
Referenced by R_RenderFrame().
vec3_t skyaxis |
Definition at line 35 of file r_main.c.
Referenced by R_SetSky().
char skyname[MAX_QPATH] |
Definition at line 32 of file r_main.c.
Referenced by R_SetSky().
float skyrotate |
Definition at line 34 of file r_main.c.
Referenced by R_SetSky().
char* suf[6] = { "rt", "bk", "lf", "ft", "up", "dn" } |
Definition at line 1398 of file r_main.c.
Referenced by R_SetSky().
cvar_t* sw_aliasstats |
Definition at line 118 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
cvar_t* sw_allow_modex |
Definition at line 119 of file r_main.c.
Referenced by DDRAW_Init(), and R_Register().
cvar_t* sw_clearcolor |
Definition at line 120 of file r_main.c.
Referenced by D_BackgroundSurf(), D_ViewChanged(), and R_Register().
cvar_t* sw_drawflat |
Definition at line 121 of file r_main.c.
Referenced by D_DrawSurfaces(), and R_Register().
cvar_t* sw_draworder |
Definition at line 122 of file r_main.c.
Referenced by R_BeginEdgeFrame(), and R_Register().
cvar_t* sw_lockpvs |
Definition at line 148 of file r_main.c.
Referenced by R_MarkLeaves(), and R_Register().
cvar_t* sw_maxedges |
Definition at line 123 of file r_main.c.
Referenced by R_NewMap(), and R_Register().
cvar_t* sw_maxsurfs |
Definition at line 124 of file r_main.c.
Referenced by R_NewMap(), and R_Register().
cvar_t* sw_mode |
Definition at line 125 of file r_main.c.
Referenced by R_BeginFrame(), and R_Register().
cvar_t* sw_reportedgeout |
Definition at line 126 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
cvar_t* sw_reportsurfout |
Definition at line 127 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
swstate_t sw_state |
Definition at line 49 of file r_main.c.
Referenced by DDRAW_Init(), Draw_BuildGammaTable(), R_BeginFrame(), R_GammaCorrectAndSetPalette(), SWimp_SetMode(), and SWimp_SetPalette().
cvar_t* sw_stipplealpha |
Definition at line 128 of file r_main.c.
Referenced by R_Register().
cvar_t* sw_surfcacheoverride |
Definition at line 129 of file r_main.c.
Referenced by R_InitCaches(), and R_Register().
cvar_t* sw_transmooth |
Definition at line 131 of file r_main.c.
Referenced by D_DrawTurbulent8Span(), R_DrawSpanlet33(), R_DrawSpanlet33Stipple(), R_DrawSpanlet66(), R_DrawSpanlet66Stipple(), R_DrawSpanletOpaque(), R_DrawSpanletTurbulentBlended33(), R_DrawSpanletTurbulentBlended66(), R_DrawSpanletTurbulentStipple33(), R_DrawSpanletTurbulentStipple66(), and R_Register().
cvar_t* sw_waterwarp |
Definition at line 130 of file r_main.c.
Referenced by R_Register(), and R_SetupFrame().
byte* thepalette |
Definition at line 33 of file r_main.c.
Referenced by Draw_GetPalette(), and R_ScreenShot_f().
float verticalFieldOfView |
Definition at line 89 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 144 of file r_main.c.
Referenced by R_BeginFrame(), and R_Register().
cvar_t* vid_gamma |
Definition at line 145 of file r_main.c.
Referenced by Draw_BuildGammaTable(), R_BeginFrame(), and R_Register().
vec3_t vpn |
Definition at line 73 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
vec3_t vright |
Definition at line 74 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
vec3_t vup |
Definition at line 72 of file r_main.c.
Referenced by R_DrawBEntitiesOnList().
float xcenter |
Definition at line 81 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 90 of file r_main.c.
Referenced by R_ViewChanged().
float xscale |
Definition at line 82 of file r_main.c.
Referenced by D_ViewChanged(), R_ClipAndDrawPoly(), R_EmitEdge(), and R_ViewChanged().
float xscaleinv |
Definition at line 83 of file r_main.c.
Referenced by D_CalcGradients(), R_PolygonCalculateGradients(), R_RenderBmodelFace(), R_RenderFace(), and R_ViewChanged().
float xscaleshrink |
Definition at line 84 of file r_main.c.
Referenced by R_DrawParticles(), and R_ViewChanged().