#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdarg.h>
#include "../client/ref.h"
#include "r_model.h"
Go to the source code of this file.
Classes | |
struct | image_s |
struct | vrect_s |
struct | viddef_t |
struct | oldrefdef_t |
struct | emitpoint_t |
struct | finalvert_s |
struct | affinetridesc_t |
struct | drawsurf_t |
struct | alight_t |
struct | bedge_s |
struct | clipplane_s |
struct | surfcache_s |
struct | espan_s |
struct | polydesc_t |
struct | surf_s |
struct | edge_s |
struct | aliastriangleparms_t |
struct | swstate_s |
Macros | |
#define | REF_VERSION "SOFT 0.01" |
#define | PITCH 0 |
#define | YAW 1 |
#define | ROLL 2 |
#define | CACHE_SIZE 32 |
#define | VID_CBITS 6 |
#define | VID_GRADES (1 << VID_CBITS) |
#define | MAXVERTS 64 |
#define | MAXWORKINGVERTS (MAXVERTS+4) |
#define | MAXHEIGHT 1200 |
#define | MAXWIDTH 1600 |
#define | INFINITE_DISTANCE 0x10000 |
#define | WARP_WIDTH 320 |
#define | WARP_HEIGHT 240 |
#define | MAX_LBM_HEIGHT 480 |
#define | PARTICLE_Z_CLIP 8.0 |
#define | TRANSPARENT_COLOR 0xFF |
#define | TURB_TEX_SIZE 64 |
#define | CYCLE 128 |
#define | SCANBUFFERPAD 0x1000 |
#define | DS_SPAN_LIST_END -128 |
#define | NUMSTACKEDGES 2000 |
#define | MINEDGES NUMSTACKEDGES |
#define | NUMSTACKSURFACES 1000 |
#define | MINSURFACES NUMSTACKSURFACES |
#define | MAXSPANS 3000 |
#define | ALIAS_LEFT_CLIP 0x0001 |
#define | ALIAS_TOP_CLIP 0x0002 |
#define | ALIAS_RIGHT_CLIP 0x0004 |
#define | ALIAS_BOTTOM_CLIP 0x0008 |
#define | ALIAS_Z_CLIP 0x0010 |
#define | ALIAS_XY_CLIP_MASK 0x000F |
#define | SURFCACHE_SIZE_AT_320X240 1024*768 |
#define | BMODEL_FULLY_CLIPPED 0x10 |
#define | XCENTERING (1.0 / 2.0) |
#define | YCENTERING (1.0 / 2.0) |
#define | CLIP_EPSILON 0.001 |
#define | BACKFACE_EPSILON 0.01 |
#define | NEAR_CLIP 0.01 |
#define | MAXALIASVERTS 2000 |
#define | ALIAS_Z_CLIP_PLANE 4 |
#define | AMP 8*0x10000 |
#define | AMP2 3 |
#define | SPEED 20 |
#define | SMALL_FINALVERT 0 |
#define | FINALVERT_V0 0 |
#define | FINALVERT_V1 4 |
#define | FINALVERT_V2 8 |
#define | FINALVERT_V3 12 |
#define | FINALVERT_V4 16 |
#define | FINALVERT_V5 20 |
#define | FINALVERT_FLAGS 24 |
#define | FINALVERT_X 28 |
#define | FINALVERT_Y 32 |
#define | FINALVERT_Z 36 |
#define | FINALVERT_SIZE 40 |
Typedefs | |
typedef struct image_s | image_t |
typedef unsigned char | pixel_t |
typedef struct vrect_s | vrect_t |
typedef struct finalvert_s | finalvert_t |
typedef struct bedge_s | bedge_t |
typedef struct clipplane_s | clipplane_t |
typedef struct surfcache_s | surfcache_t |
typedef struct espan_s | espan_t |
typedef struct surf_s | surf_t |
typedef struct edge_s | edge_t |
typedef struct swstate_s | swstate_t |
Enumerations | |
enum | imagetype_t { it_skin, it_sprite, it_wall, it_pic, it_sky, it_skin, it_sprite, it_wall, it_pic, it_sky } |
enum | rserr_t { rserr_ok, rserr_invalid_fullscreen, rserr_invalid_mode, rserr_unknown, rserr_ok, rserr_invalid_fullscreen, rserr_invalid_mode, rserr_unknown } |
#define MINEDGES NUMSTACKEDGES |
#define MINSURFACES NUMSTACKSURFACES |
typedef struct clipplane_s clipplane_t |
typedef struct finalvert_s finalvert_t |
typedef struct surfcache_s surfcache_t |
enum imagetype_t |
enum rserr_t |
surfcache_t* D_CacheSurface | ( | msurface_t * | surface, |
int | miplevel | ||
) |
Definition at line 575 of file r_surf.c.
Referenced by D_SolidSurf(), and R_BuildPolygonFromSurface().
Definition at line 537 of file r_scan.c.
Referenced by D_BackgroundSurf(), D_DrawflatSurfaces(), D_SkySurf(), D_SolidSurf(), and D_TurbulentSurf().
Definition at line 418 of file r_surf.c.
Referenced by R_BeginRegistration(), R_InitGraphics(), R_SetupFrame(), and R_Shutdown().
Definition at line 78 of file r_misc.c.
Referenced by R_ViewChanged().
void R_AddPolygonEdges | ( | emitpoint_t * | pverts, |
int | numverts, | ||
int | miplevel | ||
) |
void R_AliasClipTriangle | ( | finalvert_t * | index0, |
finalvert_t * | index1, | ||
finalvert_t * | index2 | ||
) |
Definition at line 1038 of file r_alias.c.
Referenced by R_DrawEntitiesOnList().
void R_BeginFrame | ( | float | camera_separation | ) |
Definition at line 1099 of file r_main.c.
void R_BeginRegistration | ( | char * | map | ) |
void R_CinematicSetPalette | ( | const unsigned char * | palette | ) |
void R_ClipEdge | ( | mvertex_t * | pv0, |
mvertex_t * | pv1, | ||
clipplane_t * | clip | ||
) |
float R_DLightPoint | ( | vec3_t | p | ) |
Definition at line 1245 of file r_main.c.
Definition at line 204 of file r_polyse.c.
Referenced by R_AliasClipTriangle(), and R_AliasPreparePoints().
image_t* R_FindImage | ( | char * | name, |
imagetype_t | type | ||
) |
Definition at line 497 of file r_image.c.
Referenced by Draw_FindPic(), Mod_LoadAliasModel(), Mod_LoadSpriteModel(), Mod_LoadTexinfo(), R_RegisterModel(), R_RegisterSkin(), and R_SetSky().
void R_GammaCorrectAndSetPalette | ( | const unsigned char * | pal | ) |
Definition at line 1160 of file r_main.c.
Referenced by R_BeginFrame(), R_CalcPalette(), R_CinematicSetPalette(), R_InitGraphics(), and SWimp_SetMode().
Definition at line 175 of file r_misc.c.
Referenced by R_RenderFrame().
Definition at line 94 of file r_light.c.
Referenced by R_DrawBEntitiesOnList(), R_RenderFrame(), and R_RenderView().
struct model_s* R_RegisterModel | ( | char * | name | ) |
void R_RenderBmodelFace | ( | bedge_t * | pedges, |
msurface_t * | psurf | ||
) |
Definition at line 738 of file r_rast.c.
Referenced by R_DrawSolidClippedSubmodelPolygons(), and R_RecursiveClipBPoly().
void R_RenderFace | ( | msurface_t * | fa, |
int | clipflags | ||
) |
Definition at line 525 of file r_rast.c.
Referenced by R_DrawSubmodelPolygons(), R_EmitSkyBox(), and R_RecursiveWorldNode().
Definition at line 524 of file r_misc.c.
Referenced by R_EdgeDrawing(), and R_NewMap().
void SetUpForLineScan | ( | fixed8_t | startvertu, |
fixed8_t | startvertv, | ||
fixed8_t | endvertu, | ||
fixed8_t | endvertv | ||
) |
void SWimp_BeginFrame | ( | float | camera_separation | ) |
Definition at line 176 of file rw_imp.c.
Referenced by GetRefAPI(), and R_CinematicSetPalette().
void SWimp_SetPalette | ( | const unsigned char * | palette | ) |
void Sys_MakeCodeWriteable | ( | unsigned long | startaddr, |
unsigned long | length | ||
) |
Definition at line 215 of file r_misc.c.
Referenced by D_CalcGradients(), D_DrawSurfaces(), D_SolidSurf(), D_TurbulentSurf(), R_ClipAndDrawPoly(), R_EmitEdge(), R_PolygonCalculateGradients(), R_RenderBmodelFace(), R_RenderFace(), and R_TransformPlane().
void* acolormap |
aliastriangleparms_t aliastriangleparms |
Definition at line 59 of file r_polyse.c.
Referenced by R_AliasClipTriangle(), R_AliasPreparePoints(), and R_DrawTriangle().
float aliasxcenter |
Definition at line 702 of file r_local.h.
Referenced by R_AliasProjectAndClipTestFinalVert(), and R_ViewChanged().
float aliasxscale |
Definition at line 79 of file r_main.c.
Referenced by R_AliasDrawModel(), R_AliasProjectAndClipTestFinalVert(), and R_ViewChanged().
float aliasycenter |
Definition at line 702 of file r_local.h.
Referenced by R_AliasProjectAndClipTestFinalVert(), and R_ViewChanged().
float aliasyscale |
Definition at line 702 of file r_local.h.
Referenced by R_AliasProjectAndClipTestFinalVert(), and R_ViewChanged().
edge_t* auxedges |
Definition at line 48 of file r_edge.c.
Referenced by R_EdgeDrawing(), and R_NewMap().
vec3_t base_vpn |
Definition at line 522 of file r_local.h.
Referenced by D_SolidSurf(), D_TurbulentSurf(), and R_SetupFrame().
vec3_t base_vright |
Definition at line 523 of file r_local.h.
Referenced by D_SolidSurf(), D_TurbulentSurf(), and R_SetupFrame().
vec3_t base_vup |
Definition at line 521 of file r_local.h.
Referenced by D_SolidSurf(), D_TurbulentSurf(), and R_SetupFrame().
fixed16_t bbextents |
Definition at line 673 of file r_local.h.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
fixed16_t bbextentt |
Definition at line 486 of file r_local.h.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
int blanktable[1280] |
Definition at line 49 of file r_rast.c.
Referenced by NonTurbulent8(), R_InitTurb(), and R_PolygonDrawSpans().
int c_faceclip |
Definition at line 34 of file r_rast.c.
Referenced by R_PrintTimes(), R_RenderBmodelFace(), R_RenderFace(), and R_SetupFrame().
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 GL_BuildPolygonFromSurface(), Mod_LoadFaces(), R_AliasDrawModel(), R_AliasSetupFrames(), R_AliasSetupSkin(), R_BlendLightmaps(), R_BuildPolygonFromSurface(), R_CullAliasModel(), R_DrawAliasModel(), R_DrawAlphaSurfaces(), R_DrawBrushModel(), R_DrawInlineBModel(), R_DrawSprite(), R_DrawWorld(), R_RenderFace(), and R_RenderWorld().
unsigned d_8to24table[256] |
Definition at line 27 of file r_main.c.
Referenced by DDRAW_Init(), DIB_Init(), Draw_Fill(), GL_SetDefaultState(), R_DrawBeam(), R_DrawParticles(), R_SetPalette(), and SWimp_SetMode().
surfcache_t* d_initial_rover |
Definition at line 29 of file r_misc.c.
Referenced by D_SCAlloc(), and R_SetupFrame().
int d_minmip |
Definition at line 31 of file r_misc.c.
Referenced by D_MipLevelForScale(), and R_SetupFrame().
int d_pix_max |
Definition at line 498 of file r_local.h.
Referenced by R_DrawParticle().
int d_pix_min |
Definition at line 40 of file r_misc.c.
Referenced by D_ViewChanged(), and R_DrawParticle().
int d_pix_shift |
Definition at line 498 of file r_local.h.
Referenced by R_DrawParticle().
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().
qboolean d_roverwrapped |
Definition at line 30 of file r_misc.c.
Referenced by D_SCAlloc(), and R_SetupFrame().
float d_scalemip[3] |
Definition at line 32 of file r_misc.c.
Referenced by D_MipLevelForScale(), and R_SetupFrame().
Definition at line 42 of file r_misc.c.
Referenced by D_ViewChanged(), R_DrawParticle(), and R_PolygonDrawSpans().
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().
float d_tdivzorigin |
Definition at line 483 of file r_local.h.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
float d_tdivzstepu |
Definition at line 481 of file r_local.h.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
float d_tdivzstepv |
Definition at line 482 of file r_local.h.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
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().
int d_vrectbottom_particle |
Definition at line 496 of file r_local.h.
Referenced by R_DrawParticle().
int d_vrectright_particle |
Definition at line 496 of file r_local.h.
Referenced by R_DrawParticle().
int d_vrectx |
Definition at line 38 of file r_misc.c.
Referenced by D_ViewChanged(), and R_DrawParticle().
int d_vrecty |
Definition at line 496 of file r_local.h.
Referenced by R_DrawParticle().
float d_ziorigin |
Definition at line 483 of file r_local.h.
Referenced by D_BackgroundSurf(), D_DrawflatSurfaces(), D_DrawSpans16(), D_DrawZSpans(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
float d_zistepu |
Definition at line 481 of file r_local.h.
Referenced by D_BackgroundSurf(), D_DrawflatSurfaces(), D_DrawSpans16(), D_DrawZSpans(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
float d_zistepv |
Definition at line 482 of file r_local.h.
Referenced by D_BackgroundSurf(), D_DrawflatSurfaces(), D_DrawSpans16(), D_DrawZSpans(), D_SkySurf(), D_SolidSurf(), D_TurbulentSurf(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
unsigned int d_zrowbytes |
Definition at line 183 of file r_main.c.
Referenced by D_ViewChanged().
unsigned int d_zwidth |
Definition at line 502 of file r_local.h.
Referenced by D_DrawZSpans(), D_ViewChanged(), R_DrawParticle(), R_PolygonDrawSpans(), and R_RasterizeAliasPolySmooth().
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 723 of file r_local.h.
Referenced by R_PrintDSpeeds().
float db_time1 |
Definition at line 724 of file r_local.h.
Referenced by R_PrintDSpeeds().
float db_time2 |
Definition at line 724 of file r_local.h.
Referenced by R_PrintDSpeeds().
float de_time1 |
Definition at line 725 of file r_local.h.
Referenced by R_PrintDSpeeds().
float de_time2 |
Definition at line 725 of file r_local.h.
Referenced by R_PrintDSpeeds().
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 724 of file r_local.h.
Referenced by R_PrintDSpeeds().
edge_t edge_aftertail |
Definition at line 72 of file r_edge.c.
Referenced by R_ScanEdges(), and R_StepActiveU().
edge_t edge_head |
Definition at line 70 of file r_edge.c.
Referenced by R_GenerateSpans(), R_GenerateSpansBackward(), and R_ScanEdges().
edge_t edge_tail |
Definition at line 71 of file r_edge.c.
Referenced by R_GenerateSpans(), R_GenerateSpansBackward(), R_ScanEdges(), and R_StepActiveU().
float entity_rotation[3][3] |
Definition at line 34 of file r_bsp.c.
Referenced by R_EntityRotate(), R_RecursiveClipBPoly(), and R_RotateBmodel().
qboolean insubmodel |
Definition at line 27 of file r_bsp.c.
Referenced by R_DrawBEntitiesOnList(), R_EmitSkyBox(), and R_RenderFace().
int intsintable[1280] |
Definition at line 48 of file r_rast.c.
Referenced by D_WarpScreen(), and R_InitTurb().
vec3_t modelorg |
Definition at line 29 of file r_bsp.c.
Referenced by D_DrawSurfaces(), R_DrawAlphaSurfaces(), R_DrawBEntitiesOnList(), R_DrawEntitiesOnList(), R_DrawSolidClippedSubmodelPolygons(), R_DrawSprite(), R_DrawSubmodelPolygons(), R_EmitEdge(), R_RecursiveWorldNode(), R_RenderBmodelFace(), R_RenderFace(), R_RenderWorld(), R_RotateBmodel(), R_SetupFrame(), and R_TransformFrustum().
Definition at line 57 of file r_edge.c.
Referenced by R_BeginEdgeFrame(), R_EmitEdge(), and R_ScanEdges().
int* pfrustum_indexes[4] |
Definition at line 98 of file r_main.c.
Referenced by R_BmodelCheckBBox(), R_RecursiveWorldNode(), and R_SetUpFrustumIndexes().
affinetridesc_t r_affinetridesc |
Definition at line 36 of file r_alias.c.
Referenced by R_AliasSetupSkin(), R_PolysetDrawSpans8_33(), R_PolysetDrawSpans8_66(), R_PolysetDrawSpans8_Opaque(), R_PolysetDrawThreshSpans8(), R_PolysetScanLeftEdge_C(), R_PolysetUpdateTables(), and R_RasterizeAliasPolySmooth().
int r_aliasblendcolor |
Definition at line 43 of file r_alias.c.
Referenced by R_AliasDrawModel(), R_PolysetDrawSpansConstant8_33(), and R_PolysetDrawSpansConstant8_66().
float r_aliasuvscale |
Definition at line 50 of file r_main.c.
Referenced by R_Init(), and R_ViewChanged().
msurface_t* r_alpha_surfaces |
Definition at line 45 of file r_poly.c.
Referenced by R_DrawAlphaSurfaces(), R_DrawInlineBModel(), R_RecursiveWorldNode(), R_RenderBmodelFace(), and R_RenderFace().
int r_amodels_drawn |
Definition at line 34 of file r_alias.c.
Referenced by R_AliasDrawModel(), R_PrintAliasStats(), and R_SetupFrame().
int r_clipflags |
Definition at line 61 of file r_main.c.
Referenced by R_DrawBEntitiesOnList(), and R_RenderBmodelFace().
int r_currentbkey |
Definition at line 36 of file r_bsp.c.
Referenced by R_RecursiveClipBPoly(), and R_RenderBmodelFace().
int r_currentkey |
Definition at line 62 of file r_edge.c.
Referenced by R_BeginEdgeFrame(), R_DrawSubmodelPolygons(), R_EmitSkyBox(), R_RecursiveWorldNode(), and R_RenderFace().
int r_dlightframecount |
Definition at line 24 of file r_light.c.
Referenced by R_DrawBEntitiesOnList(), R_MarkLights(), R_PushDlights(), and R_RenderDlights().
qboolean r_dowarp |
Definition at line 54 of file r_main.c.
Referenced by R_RenderFrame(), and R_SetupFrame().
int r_drawnpolycount |
Definition at line 95 of file r_main.c.
Referenced by D_DrawSurfaces(), R_PrintTimes(), and R_SetupFrame().
drawsurf_t r_drawsurf |
Definition at line 24 of file r_surf.c.
Referenced by D_CacheSurface(), R_AddDynamicLights(), R_BuildLightMap(), and R_DrawSurface().
cvar_t* r_drawworld |
Definition at line 126 of file r_main.c.
Referenced by R_DrawWorld(), and R_RenderWorld().
cvar_t* r_dspeeds |
Definition at line 128 of file r_main.c.
Referenced by R_EdgeDrawing(), R_Register(), and R_RenderFrame().
edge_t* r_edges |
Definition at line 49 of file r_edge.c.
Referenced by R_BeginEdgeFrame(), R_EdgeDrawing(), R_EmitCachedEdge(), and R_RenderFace().
vec3_t r_entorigin |
Definition at line 31 of file r_bsp.c.
Referenced by R_DrawBEntitiesOnList(), R_DrawEntitiesOnList(), R_DrawSprite(), and R_RecursiveClipBPoly().
qboolean r_fov_greater_than_90 |
int r_framecount |
Definition at line 91 of file r_main.c.
Referenced by D_CacheSurface(), GL_BeginBuildingLightmaps(), GL_RenderLightmappedPoly(), R_BuildLightMap(), R_ClipEdge(), R_EmitEdge(), R_EmitSkyBox(), R_PushDlights(), R_RecursiveWorldNode(), R_RenderBrushPoly(), R_RenderDlights(), R_RenderFace(), and R_SetupFrame().
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_BlendLightmaps(), R_BuildLightMap(), and R_SetupFrame().
cvar_t* r_lefthand |
Definition at line 111 of file r_main.c.
Referenced by R_AliasDrawModel(), R_AliasPreparePoints(), and R_DrawAliasModel().
cvar_t* r_lerpmodels |
Definition at line 130 of file r_main.c.
Referenced by R_AliasDrawModel(), and R_DrawAliasModel().
cvar_t* r_lightlevel |
Definition at line 134 of file r_main.c.
Referenced by R_AliasSetupLighting(), and R_DrawAliasModel().
int r_maxsurfsseen |
Definition at line 59 of file r_main.c.
Referenced by R_NewMap().
int r_maxvalidedgeoffset |
refdef_t r_newrefdef |
Definition at line 36 of file r_main.c.
Referenced by D_CacheSurface(), D_CalcGradients(), D_ViewChanged(), D_WarpScreen(), DrawGLFlowingPoly(), EmitWaterPolys(), GL_BeginBuildingLightmaps(), GL_RenderLightmappedPoly(), R_AddDynamicLights(), R_AliasPreparePoints(), R_AliasSetupLighting(), R_BuildLightMap(), R_BuildPolygonFromSurface(), R_DrawAliasModel(), R_DrawBrushModel(), R_DrawInlineBModel(), R_DrawParticles(), R_DrawSkyBox(), R_DrawWorld(), R_LightPoint(), R_PolygonDrawSpans(), R_PolysetDrawSpans8_Opaque(), R_PushDlights(), R_RecursiveClipBPoly(), R_RecursiveWorldNode(), R_RenderBrushPoly(), R_RenderDlights(), R_RenderWorld(), R_SetCacheState(), R_SetupFrame(), R_ViewChanged(), RecursiveLightPoint(), and Turbulent8().
image_t* r_notexture_mip |
Definition at line 104 of file r_main.c.
Referenced by Mod_LoadTexinfo(), R_InitTextures(), and R_LoadWal().
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 731 of file r_local.h.
Referenced by R_BeginRegistration(), and R_MarkLeaves().
vec3_t r_origin |
Definition at line 69 of file r_main.c.
Referenced by D_DrawSurfaces(), D_SolidSurf(), D_TurbulentSurf(), DrawSkyPolygon(), R_AddSkySurface(), R_AliasSetUpTransform(), R_BuildPolygonFromSurface(), R_ClipAndDrawPoly(), R_DrawAlphaSurfaces(), R_DrawParticle(), R_DrawSkyBox(), R_EmitSkyBox(), R_IMFlatShadedQuad(), R_RenderDlight(), R_RenderWorld(), R_SetupFrame(), and R_TransformPlane().
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().
vec3_t r_pright |
Definition at line 22 of file r_part.c.
Referenced by R_DrawParticle(), and R_DrawParticles().
mvertex_t* r_ptverts |
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().
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_BeginRegistration(), R_MarkLeaves(), and R_SetupFrame().
mleaf_t* r_viewleaf |
Definition at line 101 of file r_main.c.
Referenced by R_SetupFrame().
int r_visframecount |
Definition at line 92 of file r_main.c.
Referenced by R_MarkLeaves(), R_RecursiveClipBPoly(), and R_RecursiveWorldNode().
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 Mod_ForName(), R_BeginRegistration(), R_BlendLightmaps(), R_BuildLightMap(), R_DrawAlphaSurfaces(), R_DrawWorld(), R_LightPoint(), R_MarkLeaves(), R_MarkLights(), R_PushDlights(), R_RecursiveWorldNode(), R_RenderWorld(), R_SetupFrame(), and RecursiveLightPoint().
Definition at line 58 of file r_edge.c.
Referenced by R_BeginEdgeFrame(), R_EmitEdge(), and R_ScanEdges().
refimport_t ri |
Definition at line 25 of file r_main.c.
Referenced by CalcSurfaceExtents(), ClipSkyPolygon(), D_SCAlloc(), D_SCDump(), DDRAW_Init(), DDRAW_SetPalette(), DDRAW_Shutdown(), DIB_Init(), DIB_SetPalette(), Draw_Char(), Draw_Fill(), Draw_GetPalette(), Draw_Pic(), Draw_StretchPic(), Draw_StretchPicImplementation(), Draw_TileClear(), GL_CreateSurfaceLightmap(), GL_ImageList_f(), GL_InitImages(), GL_LoadPic(), GL_LoadWal(), GL_ScreenShot_f(), GL_Strings_f(), GL_TextureAlphaMode(), GL_TextureMode(), GL_TextureSolidMode(), GL_Upload32(), GL_Upload8(), GLimp_BeginFrame(), GLimp_EnableLogging(), GLimp_EndFrame(), GLimp_Init(), GLimp_InitGL(), GLimp_SetMode(), GLimp_Shutdown(), LM_UploadBlock(), LoadPCX(), LoadTGA(), Mod_ForName(), Mod_LoadAliasModel(), Mod_LoadBrushModel(), Mod_LoadEdges(), Mod_LoadFaces(), Mod_LoadLeafs(), Mod_LoadMarksurfaces(), Mod_LoadNodes(), Mod_LoadPlanes(), Mod_LoadSpriteModel(), Mod_LoadSubmodels(), Mod_LoadSurfedges(), Mod_LoadTexinfo(), Mod_LoadVertexes(), Mod_Modellist_f(), Mod_PointInLeaf(), QGL_Init(), R_AliasDrawModel(), R_AliasSetupFrames(), R_AliasSetupSkin(), R_BeginRegistration(), R_BlendLightmaps(), R_BuildLightMap(), R_ClipAndDrawPoly(), R_CullAliasModel(), R_DrawAliasModel(), R_DrawSprite(), R_FindFreeImage(), R_ImageList_f(), R_InitCaches(), R_InitSkyBox(), R_LoadWal(), R_PrintAliasStats(), R_PrintDSpeeds(), R_PrintTimes(), R_RecursiveClipBPoly(), R_ScreenShot_f(), SubdividePolygon(), SWimp_SetMode(), SWimp_Shutdown(), Sys_MakeCodeWriteable(), VID_CreateWindow(), VID_LoadRefresh(), and WritePCXfile().
float rw_time1 |
Definition at line 724 of file r_local.h.
Referenced by R_PrintDSpeeds().
float rw_time2 |
Definition at line 724 of file r_local.h.
Referenced by R_PrintDSpeeds().
fixed16_t sadjust |
Definition at line 672 of file r_local.h.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
surfcache_t * sc_base |
Definition at line 753 of file r_local.h.
Referenced by R_InitGraphics(), and R_Shutdown().
surfcache_t * sc_rover |
Definition at line 753 of file r_local.h.
Referenced by D_FlushCaches(), D_SCAlloc(), D_SCDump(), R_InitCaches(), and R_SetupFrame().
float scale_for_mip |
Definition at line 79 of file r_edge.c.
Referenced by D_SolidSurf(), and D_ViewChanged().
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 725 of file r_local.h.
Referenced by R_PrintDSpeeds().
int sintable[1280] |
Definition at line 47 of file r_rast.c.
Referenced by R_InitTurb(), R_PolygonDrawSpans(), and Turbulent8().
mtexinfo_t* sky_texinfo[6] |
surf_t* surfaces |
Definition at line 51 of file r_edge.c.
Referenced by D_DrawflatSurfaces(), D_DrawSurfaces(), R_BeginEdgeFrame(), R_CleanupSpan(), R_EdgeDrawing(), R_EmitCachedEdge(), R_EmitEdge(), R_GenerateSpans(), R_GenerateSpansBackward(), R_LeadingEdge(), R_LeadingEdgeBackwards(), R_NewMap(), R_ScanEdges(), and R_TrailingEdge().
cvar_t* sw_aliasstats |
Definition at line 112 of file r_main.c.
Referenced by R_Register(), and R_RenderFrame().
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_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_mipcap |
Definition at line 26 of file r_misc.c.
Referenced by R_Register(), and R_SetupFrame().
cvar_t* sw_mipscale |
Definition at line 27 of file r_misc.c.
Referenced by R_Register(), and R_SetupFrame().
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().
vec3_t sxformaxis[4] |
fixed16_t tadjust |
Definition at line 485 of file r_local.h.
Referenced by D_CalcGradients(), D_DrawSpans16(), NonTurbulent8(), R_PolygonCalculateGradients(), R_PolygonDrawSpans(), and Turbulent8().
vec3_t txformaxis[4] |
int ubasestep |
Definition at line 670 of file r_local.h.
Referenced by R_PolysetDrawSpans8_33(), R_PolysetDrawSpans8_66(), R_PolysetDrawSpans8_Opaque(), R_PolysetDrawSpansConstant8_33(), R_PolysetDrawSpansConstant8_66(), R_PolysetDrawThreshSpans8(), R_PolysetScanLeftEdge_C(), R_PolysetSetUpForLineScan(), and R_RasterizeAliasPolySmooth().
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 BlendParticle33(), BlendParticle66(), D_Patch(), D_ViewChanged(), D_WarpScreen(), DDRAW_Init(), DDRAW_Shutdown(), DIB_Init(), Draw_Char(), Draw_FadeScreen(), Draw_Fill(), Draw_Pic(), Draw_StretchPicImplementation(), Draw_TileClear(), GL_ScreenShot_f(), R_DrawParticle(), R_DrawSpanlet33(), R_DrawSpanlet66(), R_DrawSpanletConstant33(), R_DrawSpanletTurbulentBlended33(), R_DrawSpanletTurbulentBlended66(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), R_DrawSurfaceBlock8_mip3(), R_InitCaches(), R_PolysetDrawSpans8_33(), R_PolysetDrawSpans8_66(), R_PolysetDrawSpans8_Opaque(), R_PolysetDrawSpansConstant8_33(), R_PolysetDrawSpansConstant8_66(), R_PolysetDrawThreshSpans8(), R_ScreenShot_f(), R_SetupFrame(), SWimp_EndFrame(), and SWimp_InitGraphics().
clipplane_t view_clipplanes[4] |
Definition at line 38 of file r_rast.c.
Referenced by R_AliasCheckFrameBBox(), R_BmodelCheckBBox(), R_ClipAndDrawPoly(), R_Init(), R_RecursiveWorldNode(), R_RenderBmodelFace(), R_RenderFace(), R_SetUpFrustumIndexes(), and R_TransformFrustum().
vec3_t vpn |
Definition at line 67 of file r_main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_AliasSetUpTransform(), R_DrawParticles(), R_DrawSprite(), R_RenderDlight(), R_RotateBmodel(), R_SetupFrame(), R_TransformFrustum(), and TransformVector().
vec3_t vright |
Definition at line 68 of file r_main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_AliasSetUpTransform(), R_DrawParticles(), R_DrawSprite(), R_RenderDlight(), R_RotateBmodel(), R_SetupFrame(), R_TransformFrustum(), and TransformVector().
vec3_t vup |
Definition at line 66 of file r_main.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), R_AliasSetUpTransform(), R_DrawParticles(), R_DrawSprite(), R_RenderDlight(), R_RotateBmodel(), R_SetupFrame(), R_TransformFrustum(), RotatePointAroundVector(), and TransformVector().
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().
float ycenter |
Definition at line 538 of file r_local.h.
Referenced by D_CalcGradients(), R_ClipAndDrawPoly(), R_DrawParticle(), R_EmitEdge(), R_PolygonCalculateGradients(), R_RenderBmodelFace(), R_RenderFace(), and R_ViewChanged().
float yOrigin |
Definition at line 602 of file r_local.h.
Referenced by R_ViewChanged().
float yscale |
Definition at line 539 of file r_local.h.
Referenced by D_ViewChanged(), R_ClipAndDrawPoly(), R_EmitEdge(), and R_ViewChanged().
float yscaleinv |
Definition at line 540 of file r_local.h.
Referenced by D_CalcGradients(), R_PolygonCalculateGradients(), R_RenderBmodelFace(), R_RenderFace(), and R_ViewChanged().
float yscaleshrink |
Definition at line 541 of file r_local.h.
Referenced by R_DrawParticles(), and R_ViewChanged().
short* zspantable[MAXHEIGHT] |
Definition at line 43 of file r_misc.c.
Referenced by D_ViewChanged().