QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
r_local.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

struct  alight_t
 
struct  auxvert_t
 
struct  bedge_s
 
struct  btofpoly_s
 
struct  clipplane_s
 

Macros

#define ALIAS_BASE_SIZE_RATIO   (1.0 / 11.0)
 
#define ALIAS_Z_CLIP_PLANE   5
 
#define AMP   8*0x10000
 
#define AMP2   3
 
#define BACKFACE_EPSILON   0.01
 
#define BMODEL_FULLY_CLIPPED   0x10
 
#define CLIP_EPSILON   0.001
 
#define CROSSHAIR_COUNT   (CROSSHAIR_TILEX * CROSSHAIR_TILEY)
 
#define CROSSHAIR_HEIGHT   8
 
#define CROSSHAIR_TILEX   2
 
#define CROSSHAIR_TILEY   2
 
#define CROSSHAIR_WIDTH   8
 
#define DIST_NOT_SET   98765
 
#define MAX_BTOFPOLYS   5000
 
#define MAXBVERTINDEXES   1000
 
#define NEAR_CLIP   0.01
 
#define SPEED   20
 
#define XCENTERING   (1.0 / 2.0)
 
#define YCENTERING   (1.0 / 2.0)
 

Typedefs

typedef struct bedge_s bedge_t
 
typedef struct btofpoly_s btofpoly_t
 
typedef struct clipplane_s clipplane_t
 

Functions

void D_DrawSurfaces (void)
 
struct qpic_sDraw_CrosshairPic (void)
 
void R_AddPolygonEdges (emitpoint_t *pverts, int numverts, int miplevel)
 
void R_AddTexture (texture_t *tex)
 
void R_Alias_clip_bottom (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
void R_Alias_clip_left (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
void R_Alias_clip_right (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
void R_Alias_clip_top (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
qboolean R_AliasCheckBBox (void)
 
void R_AliasClipAndProjectFinalVert (finalvert_t *fv, auxvert_t *av)
 
void R_AliasClipTriangle (mtriangle_t *ptri)
 
void R_AliasDrawModel (alight_t *plighting)
 
maliasframedesc_tR_AliasGetFramedesc (int framenum, aliashdr_t *hdr)
 
float R_AliasGetLerpedFrames (entity_t *ent, aliashdr_t *hdr)
 
maliasskindesc_tR_AliasGetSkindesc (int skinnum, aliashdr_t *hdr)
 
void R_AliasProjectFinalVert (finalvert_t *fv, auxvert_t *av)
 
void R_AliasSetUpTransform (int trivial_accept)
 
void R_AliasTransformAndProjectFinalVerts (finalvert_t *fv, stvert_t *pstverts)
 
void R_AliasTransformFinalVert (finalvert_t *fv, trivertx_t *pverts, stvert_t *pstverts)
 
void R_AliasTransformVector (vec3_t in, vec3_t out)
 
void R_AnimateLight (void)
 
void R_BeginEdgeFrame (void)
 
void R_ClearParticles (void)
 
void R_ClearPolyList (void)
 
void R_ClearTextures (void)
 
void R_ClipEdge (mvertex_t *pv0, mvertex_t *pv1, clipplane_t *clip)
 
void R_cshift_f (void)
 
struct tex_sR_DotParticleTexture (void)
 
void R_DrawParticles (void)
 
void R_DrawPolyList (void)
 
void R_DrawSolidClippedSubmodelPolygons (model_t *pmodel)
 
void R_DrawSprite (void)
 
void R_DrawSubmodelPolygons (model_t *pmodel, int clipflags)
 
void R_DrawSurfaceBlock (void)
 
void R_EdgeCodeEnd (void)
 
void R_EdgeCodeStart (void)
 
void R_EmitEdge (mvertex_t *pv0, mvertex_t *pv1)
 
float R_EntityBlend (entity_t *ent, int pose, float interval)
 
void R_GenerateSpans (void)
 
void R_GenSkyTile (void *pdest)
 
surf_tR_GetSurf (void)
 
void R_HighFPPrecision (void)
 
void R_InitParticles (void)
 
void R_InitSprites (void)
 
void R_InitSurfaceChains (model_t *model)
 
void R_InitTurb (void)
 
void R_InitVars (void)
 
void R_InsertNewEdges (edge_t *edgestoadd, edge_t *edgelist)
 
iqmframe_tR_IQMBlendFrames (const iqm_t *iqm, int frame1, int frame2, float blend, int extra)
 
iqmframe_tR_IQMBlendPalette (const iqm_t *iqm, int frame1, int frame2, float blend, int extra, iqmblend_t *blend_palette, int palette_size)
 
void R_IQMDrawModel (alight_t *plighting)
 
float R_IQMGetLerpedFrames (entity_t *ent, iqm_t *hdr)
 
int R_LightPoint (const vec3_t p)
 
void R_LoadSky_f (void)
 
void R_LoadSkys (const char *)
 
void R_LowFPPrecision (void)
 
void R_MarkLights (const vec3_t lightorigin, struct dlight_s *light, int bit, model_t *model)
 
void R_PrintAliasStats (void)
 
void R_PrintTimes (void)
 
void R_ReadPointFile_f (void)
 
void R_RecursiveMarkLights (const vec3_t lightorigin, struct dlight_s *light, int bit, mnode_t *node)
 
void R_RemoveEdges (edge_t *pedge)
 
void R_RenderBmodelFace (bedge_t *pedges, msurface_t *psurf)
 
void R_RenderFace (msurface_t *fa, int clipflags)
 
void R_RenderPoly (msurface_t *fa, int clipflags)
 
void R_RenderWorld (void)
 
void R_RotateBmodel (void)
 
void R_ScanEdges (void)
 
void R_SetFPCW (void)
 
void R_SetFrustum (void)
 
void R_SetSkyFrame (void)
 
void R_SetupFrame (void)
 
struct tex_sR_SmokeParticleTexture (void)
 
struct tex_sR_SparkParticleTexture (void)
 
void R_SpriteBegin (void)
 
void R_SpriteEnd (void)
 
void R_StepActiveU (edge_t *pedge)
 
void R_StoreEfrags (const efrag_t *ppefrag)
 
void R_Surf8End (void)
 
void R_Surf8Start (void)
 
void R_SurfacePatch (void)
 
void R_SurfPatch (void)
 
texture_tR_TextureAnimation (msurface_t *surf)
 
void R_TimeGraph (void)
 
void R_TimeRefresh_f (void)
 
void R_TransformFrustum (void)
 
void R_TransformPlane (plane_t *p, float *normal, float *dist)
 
void R_ZDrawSubmodelPolys (model_t *clmodel)
 
void R_ZGraph (void)
 

Variables

float aliastransform [3][4]
 
float aliasxcenter
 
float aliasxscale
 
float aliasycenter
 
float aliasyscale
 
edge_tauxedges
 
fixed16_t bbextents
 
fixed16_t bbextentt
 
float bottomclip
 
int c_faceclip
 
float cl_wateralpha
 
model_tcl_worldmodel
 
byte crosshair_data []
 
edge_tedge_max
 
edge_tedge_p
 
mat4_t glsl_projection
 
mat4_t glsl_view
 
qboolean insubmodel
 
float leftclip
 
vec3_t lightspot
 
edge_tnewedges [MAXHEIGHT]
 
int numbtofpolys
 
int numtriangles
 
int numverts
 
auxvert_tpauxverts
 
vrect_tpconupdate
 
finalvert_tpfinalverts
 
intpfrustum_indexes [4]
 
int r_acliptype
 
struct cvar_sr_aliasstats
 
float r_aliastransition
 
struct cvar_sr_ambient
 
int r_amodels_drawn
 
int r_bmodelactive
 
qboolean r_cache_thrash
 
struct cvar_sr_clearcolor
 
int r_clipflags
 
int r_currentbkey
 
int r_currentkey
 
int r_dlightframecount
 
qboolean r_dowarpold
 
struct cvar_sr_drawentities
 
struct cvar_sr_drawflat
 
struct cvar_sr_dspeeds
 
edge_tr_edges
 
struct entity_sr_ent_queue
 
vec3_t r_entorigin
 
int r_frustum_indexes [4 *6]
 
struct cvar_sr_fullbright
 
struct cvar_sr_graphheight
 
struct cvar_sr_maxedges
 
int r_maxedgesseen
 
struct cvar_sr_maxsurfs
 
int r_maxsurfsseen
 
int r_maxvalidedgeoffset
 
int r_numallocatededges
 
struct cvar_sr_numedges
 
struct cvar_sr_numsurfs
 
vec3_t r_origin
 
int r_outofedges
 
int r_outofsurfaces
 
mvertex_tr_pcurrentvertbase
 
int r_polycount
 
mvertex_tr_ptverts
 
mvertex_tr_ptvertsmax
 
struct cvar_sr_reportedgeout
 
struct cvar_sr_reportsurfout
 
float r_resfudge
 
struct cvar_sr_speeds
 
float r_time1
 
struct cvar_sr_timegraph
 
qboolean r_viewchanged
 
mleaf_tr_viewleaf
 
int r_visframecount
 
struct cvar_sr_waterwarp
 
vec3_t r_worldmodelorg
 
edge_tremoveedges [MAXHEIGHT]
 
float rightclip
 
fixed16_t sadjust
 
vec3_t sbaseaxis [3]
 
plane_t screenedge [4]
 
int screenwidth
 
float sw32_ziscale
 
fixed16_t tadjust
 
vec3_t tbaseaxis [3]
 
float topclip
 
clipplane_t view_clipplanes [4]
 
int vstartscan
 
float ziscale
 

Macro Definition Documentation

#define ALIAS_BASE_SIZE_RATIO   (1.0 / 11.0)
#define ALIAS_Z_CLIP_PLANE   5
#define AMP   8*0x10000
#define AMP2   3
#define BACKFACE_EPSILON   0.01
#define BMODEL_FULLY_CLIPPED   0x10
#define CLIP_EPSILON   0.001
#define CROSSHAIR_COUNT   (CROSSHAIR_TILEX * CROSSHAIR_TILEY)
#define CROSSHAIR_HEIGHT   8
#define CROSSHAIR_TILEX   2
#define CROSSHAIR_TILEY   2
#define CROSSHAIR_WIDTH   8
#define DIST_NOT_SET   98765
#define MAX_BTOFPOLYS   5000
#define MAXBVERTINDEXES   1000
#define NEAR_CLIP   0.01
#define SPEED   20
#define XCENTERING   (1.0 / 2.0)
#define YCENTERING   (1.0 / 2.0)

Typedef Documentation

typedef struct bedge_s bedge_t
typedef struct btofpoly_s btofpoly_t
typedef struct clipplane_s clipplane_t

Function Documentation

void D_DrawSurfaces ( void  )
struct qpic_s* Draw_CrosshairPic ( void  )
void R_AddPolygonEdges ( emitpoint_t pverts,
int  numverts,
int  miplevel 
)
void R_AddTexture ( texture_t tex)
void R_Alias_clip_bottom ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)
void R_Alias_clip_left ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)
void R_Alias_clip_right ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)
void R_Alias_clip_top ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)
qboolean R_AliasCheckBBox ( void  )
void R_AliasClipAndProjectFinalVert ( finalvert_t fv,
auxvert_t av 
)
void R_AliasClipTriangle ( mtriangle_t ptri)
void R_AliasDrawModel ( alight_t plighting)
maliasframedesc_t* R_AliasGetFramedesc ( int  framenum,
aliashdr_t hdr 
)
float R_AliasGetLerpedFrames ( entity_t ent,
aliashdr_t hdr 
)
maliasskindesc_t* R_AliasGetSkindesc ( int  skinnum,
aliashdr_t hdr 
)
void R_AliasProjectFinalVert ( finalvert_t fv,
auxvert_t av 
)
void R_AliasSetUpTransform ( int  trivial_accept)
void R_AliasTransformAndProjectFinalVerts ( finalvert_t fv,
stvert_t pstverts 
)
void R_AliasTransformFinalVert ( finalvert_t fv,
trivertx_t pverts,
stvert_t pstverts 
)
void R_AliasTransformVector ( vec3_t  in,
vec3_t  out 
)
void R_AnimateLight ( void  )
void R_BeginEdgeFrame ( void  )
void R_ClearParticles ( void  )
void R_ClearPolyList ( void  )
void R_ClearTextures ( void  )
void R_ClipEdge ( mvertex_t pv0,
mvertex_t pv1,
clipplane_t clip 
)
void R_cshift_f ( void  )
struct tex_s* R_DotParticleTexture ( void  )
void R_DrawParticles ( void  )
void R_DrawPolyList ( void  )
void R_DrawSolidClippedSubmodelPolygons ( model_t pmodel)
void R_DrawSprite ( void  )
void R_DrawSubmodelPolygons ( model_t pmodel,
int  clipflags 
)
void R_DrawSurfaceBlock ( void  )
void R_EdgeCodeEnd ( void  )
void R_EdgeCodeStart ( void  )
void R_EmitEdge ( mvertex_t pv0,
mvertex_t pv1 
)
float R_EntityBlend ( entity_t ent,
int  pose,
float  interval 
)
void R_GenerateSpans ( void  )
void R_GenSkyTile ( void *  pdest)
surf_t* R_GetSurf ( void  )
void R_HighFPPrecision ( void  )
void R_InitParticles ( void  )
void R_InitSprites ( void  )
void R_InitSurfaceChains ( model_t model)
void R_InitTurb ( void  )
void R_InitVars ( void  )
void R_InsertNewEdges ( edge_t edgestoadd,
edge_t edgelist 
)
iqmframe_t* R_IQMBlendFrames ( const iqm_t iqm,
int  frame1,
int  frame2,
float  blend,
int  extra 
)
iqmframe_t* R_IQMBlendPalette ( const iqm_t iqm,
int  frame1,
int  frame2,
float  blend,
int  extra,
iqmblend_t blend_palette,
int  palette_size 
)
void R_IQMDrawModel ( alight_t plighting)
float R_IQMGetLerpedFrames ( entity_t ent,
iqm_t hdr 
)
int R_LightPoint ( const vec3_t  p)
void R_LoadSky_f ( void  )
void R_LoadSkys ( const char *  )
void R_LowFPPrecision ( void  )
void R_MarkLights ( const vec3_t  lightorigin,
struct dlight_s light,
int  bit,
model_t model 
)
void R_PrintAliasStats ( void  )
void R_PrintTimes ( void  )
void R_ReadPointFile_f ( void  )
void R_RecursiveMarkLights ( const vec3_t  lightorigin,
struct dlight_s light,
int  bit,
mnode_t node 
)
void R_RemoveEdges ( edge_t pedge)
void R_RenderBmodelFace ( bedge_t pedges,
msurface_t psurf 
)
void R_RenderFace ( msurface_t fa,
int  clipflags 
)
void R_RenderPoly ( msurface_t fa,
int  clipflags 
)
void R_RenderWorld ( void  )
void R_RotateBmodel ( void  )
void R_ScanEdges ( void  )
void R_SetFPCW ( void  )
void R_SetFrustum ( void  )
void R_SetSkyFrame ( void  )
void R_SetupFrame ( void  )
struct tex_s* R_SmokeParticleTexture ( void  )
struct tex_s* R_SparkParticleTexture ( void  )
void R_SpriteBegin ( void  )
void R_SpriteEnd ( void  )
void R_StepActiveU ( edge_t pedge)
void R_StoreEfrags ( const efrag_t ppefrag)
void R_Surf8End ( void  )
void R_Surf8Start ( void  )
void R_SurfacePatch ( void  )
void R_SurfPatch ( void  )
texture_t* R_TextureAnimation ( msurface_t surf)
void R_TimeGraph ( void  )
void R_TimeRefresh_f ( void  )
void R_TransformFrustum ( void  )
void R_TransformPlane ( plane_t p,
float *  normal,
float *  dist 
)
void R_ZDrawSubmodelPolys ( model_t clmodel)
void R_ZGraph ( void  )

Variable Documentation

float aliastransform[3][4]
float aliasxcenter
float aliasxscale
float aliasycenter
float aliasyscale
edge_t* auxedges
fixed16_t bbextents
fixed16_t bbextentt
float bottomclip
int c_faceclip
float cl_wateralpha
model_t* cl_worldmodel
byte crosshair_data[]
edge_t * edge_max
edge_t * edge_p
mat4_t glsl_projection
mat4_t glsl_view
qboolean insubmodel
float leftclip
vec3_t lightspot
edge_t* newedges[MAXHEIGHT]
int numbtofpolys
int numtriangles
int numverts
auxvert_t* pauxverts
vrect_t* pconupdate
finalvert_t* pfinalverts
int* pfrustum_indexes[4]
int r_acliptype
struct cvar_s* r_aliasstats
float r_aliastransition
struct cvar_s* r_ambient
int r_amodels_drawn
int r_bmodelactive
qboolean r_cache_thrash
struct cvar_s* r_clearcolor
int r_clipflags
int r_currentbkey
int r_currentkey
int r_dlightframecount
qboolean r_dowarpold
struct cvar_s* r_drawentities
struct cvar_s* r_drawflat
struct cvar_s* r_dspeeds
edge_t* r_edges
struct entity_s* r_ent_queue
vec3_t r_entorigin
int r_frustum_indexes[4 *6]
struct cvar_s* r_fullbright
struct cvar_s* r_graphheight
struct cvar_s* r_maxedges
int r_maxedgesseen
struct cvar_s* r_maxsurfs
int r_maxsurfsseen
int r_maxvalidedgeoffset
int r_numallocatededges
struct cvar_s* r_numedges
struct cvar_s* r_numsurfs
vec3_t r_origin
int r_outofedges
int r_outofsurfaces
mvertex_t* r_pcurrentvertbase
int r_polycount
mvertex_t* r_ptverts
mvertex_t * r_ptvertsmax
struct cvar_s* r_reportedgeout
struct cvar_s* r_reportsurfout
float r_resfudge
struct cvar_s* r_speeds
float r_time1
struct cvar_s* r_timegraph
qboolean r_viewchanged
mleaf_t* r_viewleaf
int r_visframecount
struct cvar_s* r_waterwarp
vec3_t r_worldmodelorg
edge_t* removeedges[MAXHEIGHT]
float rightclip
fixed16_t sadjust
vec3_t sbaseaxis[3]
plane_t screenedge[4]
int screenwidth
float sw32_ziscale
fixed16_t tadjust
vec3_t tbaseaxis[3]
float topclip
clipplane_t view_clipplanes[4]
int vstartscan
float ziscale