Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
19 #include "shared/shared.h"
20 #include "common/bsp.h"
21 #include "common/cmd.h"
22 #include "common/common.h"
23 #include "common/cvar.h"
24 #include "common/files.h"
25 #include "common/math.h"
27 #include "client/video.h"
28 #include "refresh/refresh.h"
29 #include "refresh/images.h"
30 #include "refresh/models.h"
31 #include "system/system.h"
33 #define REF_VERSION "SOFT 0.01"
45 #define DSURF_BACKGROUND 8
49 #define VID_BYTES 4 // can be 4 or 3
50 #define TEX_BYTES 4 // must be 4
53 #define MAXVERTS 64 // max points in a surface polygon
54 #define MAXWORKINGVERTS (MAXVERTS + 4) // max points in an intermediate
57 #define MAXHEIGHT 1200
60 #define INFINITE_DISTANCE 0x10000 // distance that's always guaranteed to
64 #define WARP_WIDTH 320
65 #define WARP_HEIGHT 240
67 #define PARTICLE_Z_CLIP 8.0
69 #define TRANSPARENT_COLOR 0xFF
71 #define TURB_SIZE 64 // base turbulent texture size
72 #define TURB_MASK (TURB_SIZE - 1)
74 #define CYCLE 128 // turbulent cycle size
76 #define DS_SPAN_LIST_END -128
78 #define NUMSTACKEDGES 3000
79 #define MINEDGES NUMSTACKEDGES
80 #define MAXEDGES 30000
81 #define NUMSTACKSURFACES 1000
82 #define MINSURFACES NUMSTACKSURFACES
83 #define MAXSURFACES 10000
87 #define ALIAS_LEFT_CLIP 0x0001
88 #define ALIAS_TOP_CLIP 0x0002
89 #define ALIAS_RIGHT_CLIP 0x0004
90 #define ALIAS_BOTTOM_CLIP 0x0008
91 #define ALIAS_Z_CLIP 0x0010
92 #define ALIAS_XY_CLIP_MASK 0x000F
94 #define SURFCACHE_SIZE_AT_320X240 1024*768
96 #define BMODEL_FULLY_CLIPPED 0x10 // value returned by R_BmodelCheckBBox ()
99 #define CLIP_EPSILON 0.001
101 #define BACKFACE_EPSILON 0.01
103 #define NEAR_CLIP 0.01
105 #define ALIAS_Z_CLIP_PLANE 4
108 #define AMP 8*0x10000
202 #define MAX_BLOCKLIGHTS 1024
203 #define LIGHTMAP_BYTES 3
235 float viewer_position[3];
struct maliasvert_s maliasvert_t
void R_DrawParticles(void)
void R_BeginEdgeFrame(void)
blocklight_t blocklights[MAX_BLOCKLIGHTS *LIGHTMAP_BYTES]
cvar_t * sw_reportedgeout
void R_RotateBmodel(void)
fixed8_t r_aliasblendcolor[3]
unsigned short index_xyz[3]
void R_MarkLights(mnode_t *headnode)
struct drawsurf_s drawsurf_t
void R_TransformFrustum(void)
void R_DrawBeam(entity_t *e)
int vrectright_adj_shift20
void R_ApplySIRDAlgorithum(void)
unsigned short index_st[3]
int lightadj[MAX_LIGHTMAPS]
edge_t * removeedges[MAXHEIGHT]
cvar_t * sw_surfcacheoverride
void R_DrawSubmodelPolygons(mmodel_t *pmodel, int clipflags, mnode_t *topnode)
edge_t * newedges[MAXHEIGHT]
void R_DrawTriangle(void)
surfcache_t * D_CacheSurface(mface_t *surface, int miplevel)
void R_DrawSolidClippedSubmodelPolygons(mmodel_t *pmodel, mnode_t *topnode)
int * pfrustum_indexes[4]
struct surfcache_s surfcache_t
clipplane_t view_clipplanes[4]
void R_IMFlatShadedQuad(vec3_t a, vec3_t b, vec3_t c, vec3_t d, color_t color, float alpha)
void R_AliasClipTriangle(finalvert_t *index0, finalvert_t *index1, finalvert_t *index2)
fixed8_t lightadj[MAX_LIGHTMAPS]
void D_DrawSpans16(espan_t *pspans)
struct maliasframe_s maliasframe_t
void R_TransformVector(vec3_t in, vec3_t out)
void R_TransformPlane(cplane_t *p, float *normal, float *dist)
void R_BuildGammaTable(void)
struct clipplane_s * next
struct surfcache_s ** owner
struct clipplane_s clipplane_t
struct edge_s * nextremove
void(APIENTRY *qwglDrawBuffer)(GLenum mode)
void D_DrawSurfaces(void)
int r_alias_one_minus_alpha
mface_t * r_alpha_surfaces
byte r_warpbuffer[WARP_WIDTH *WARP_HEIGHT *VID_BYTES]
void D_DrawZSpans(espan_t *pspans)
int r_frustum_indexes[4 *6]
struct maliasst_s maliasst_t
void D_DrawTurbulent16(espan_t *pspan, int *warptable)
void R_DrawAlphaSurfaces(void)
vec3_t entity_rotation[3]
int intsintable[CYCLE *2]
void R_PrintAliasStats(void)
void R_RenderBmodelFace(bedge_t *pedges, mface_t *psurf)
void R_RenderFace(mface_t *fa, int clipflags)
void R_AliasDrawModel(void)
affinetridesc_t r_affinetridesc
void R_ShutdownImages(void)
void R_AliasProjectAndClipTestFinalVert(finalvert_t *fv)
struct maliastri_s maliastri_t
void R_BuildLightMap(void)
cvar_t * sw_reportsurfout
struct finalvert_s finalvert_t
byte * d_spantable[MAXHEIGHT]
struct surfcache_s * next
aliastriangleparms_t aliastriangleparms
void R_LightPoint(vec3_t p, vec3_t color)
short * d_zspantable[MAXHEIGHT]