icculus quake2 doxygen
1.0 dev
|
|
Go to the documentation of this file.
29 #include "../client/ref.h"
31 #define REF_VERSION "SOFT 0.01"
142 #define CACHE_SIZE 32
153 #define VID_GRADES (1 << VID_CBITS)
160 #define MAXVERTS 64 // max points in a surface polygon
161 #define MAXWORKINGVERTS (MAXVERTS+4) // max points in an intermediate
164 #define MAXHEIGHT 1200
165 #define MAXWIDTH 1600
167 #define INFINITE_DISTANCE 0x10000 // distance that's always guaranteed to
174 #define WARP_WIDTH 320
175 #define WARP_HEIGHT 240
177 #define MAX_LBM_HEIGHT 480
180 #define PARTICLE_Z_CLIP 8.0
183 #define TRANSPARENT_COLOR 0xFF
187 #define TURB_TEX_SIZE 64 // base turbulent texture size
190 #define CYCLE 128 // turbulent cycle size
192 #define SCANBUFFERPAD 0x1000
194 #define DS_SPAN_LIST_END -128
196 #define NUMSTACKEDGES 2000
197 #define MINEDGES NUMSTACKEDGES
198 #define NUMSTACKSURFACES 1000
199 #define MINSURFACES NUMSTACKSURFACES
200 #define MAXSPANS 3000
203 #define ALIAS_LEFT_CLIP 0x0001
204 #define ALIAS_TOP_CLIP 0x0002
205 #define ALIAS_RIGHT_CLIP 0x0004
206 #define ALIAS_BOTTOM_CLIP 0x0008
207 #define ALIAS_Z_CLIP 0x0010
208 #define ALIAS_XY_CLIP_MASK 0x000F
210 #define SURFCACHE_SIZE_AT_320X240 1024*768
212 #define BMODEL_FULLY_CLIPPED 0x10 // value returned by R_BmodelCheckBBox ()
215 #define XCENTERING (1.0 / 2.0)
216 #define YCENTERING (1.0 / 2.0)
218 #define CLIP_EPSILON 0.001
220 #define BACKFACE_EPSILON 0.01
223 #define NEAR_CLIP 0.01
226 #define MAXALIASVERTS 2000 // TODO: tune this
227 #define ALIAS_Z_CLIP_PLANE 4
231 #define AMP 8*0x10000
255 #define SMALL_FINALVERT 0
267 #define FINALVERT_V0 0
268 #define FINALVERT_V1 2
269 #define FINALVERT_V2 4
270 #define FINALVERT_V3 6
271 #define FINALVERT_V4 8
272 #define FINALVERT_V5 12
273 #define FINALVERT_FLAGS 16
274 #define FINALVERT_X 20
275 #define FINALVERT_Y 24
276 #define FINALVERT_Z 28
277 #define FINALVERT_SIZE 32
289 #define FINALVERT_V0 0
290 #define FINALVERT_V1 4
291 #define FINALVERT_V2 8
292 #define FINALVERT_V3 12
293 #define FINALVERT_V4 16
294 #define FINALVERT_V5 20
295 #define FINALVERT_FLAGS 24
296 #define FINALVERT_X 28
297 #define FINALVERT_Y 32
298 #define FINALVERT_Z 36
299 #define FINALVERT_SIZE 40
392 float viewer_position[3];
765 int R_Init(
void *hInstance,
void *wndProc );
810 void Draw_ScaledPic (
int x,
int y,
float scale,
float alpha,
char *pic);
851 int SWimp_Init(
void *hInstance,
void *wndProc );
void R_ClipEdge(mvertex_t *pv0, mvertex_t *pv1, clipplane_t *clip)
mtexinfo_t * sky_texinfo[6]
void Draw_FadeScreen(void)
void D_DrawSurfaces(void)
void R_DrawSurfaceBlock8_mip0(void)
void R_CinematicSetPalette(const unsigned char *palette)
void R_BeginRegistration(char *map)
void R_PolysetUpdateTables(void)
int * pfrustum_indexes[4]
void R_ScreenShot_f(void)
void R_GammaCorrectAndSetPalette(const unsigned char *pal)
float verticalFieldOfView
void R_SurfacePatch(void)
void R_EmitEdge(mvertex_t *pv0, mvertex_t *pv1)
surfcache_t * D_CacheSurface(msurface_t *surface, int miplevel)
int vrectright_adj_shift20
void R_GenSkyTile16(void *pdest)
int R_Init(void *hInstance, void *wndProc)
int lightadj[MAXLIGHTMAPS]
cvar_t * sw_surfcacheoverride
image_t * r_notexture_mip
int SWimp_Init(void *hInstance, void *wndProc)
void Draw_StretchRaw(int x, int y, int w, int h, int cols, int rows, byte *data)
finalvert_t * pfinalverts
struct image_s * Draw_FindPic(char *name)
float entity_rotation[3][3]
rserr_t SWimp_SetMode(int *pwidth, int *pheight, int mode, qboolean fullscreen)
int registration_sequence
void R_BeginEdgeFrame(void)
void R_RotateBmodel(void)
void R_DrawTriangle(void)
void SWimp_AppActivate(qboolean active)
void R_DrawSubmodelPolygons(model_t *pmodel, int clipflags, mnode_t *topnode)
void R_ShutdownImages(void)
void Draw_Char(int x, int y, int c)
float R_DLightPoint(vec3_t p)
void R_DrawSurfaceBlock8_mip3(void)
void SetUpForLineScan(fixed8_t startvertu, fixed8_t startvertv, fixed8_t endvertu, fixed8_t endvertv)
struct finalvert_s finalvert_t
void R_DrawSolidClippedSubmodelPolygons(model_t *pmodel, mnode_t *topnode)
void R_DrawSurfaceBlock16(void)
affinetridesc_t r_affinetridesc
void Sys_MakeCodeWriteable(unsigned long startaddr, unsigned long length)
void R_AddPolygonEdges(emitpoint_t *pverts, int numverts, int miplevel)
short * zspantable[MAXHEIGHT]
void R_GenSkyTile(void *pdest)
void R_ClearPolyList(void)
void R_DrawParticles(void)
void Draw_Fill(int x, int y, int w, int h, int c)
qboolean r_fov_greater_than_90
void R_PrintAliasStats(void)
void D_DrawSpans16(espan_t *pspans)
void R_DrawSurfaceBlock8(void)
struct clipplane_s * next
struct surfcache_s ** owner
void R_TransformFrustum(void)
void SWimp_EndFrame(void)
int d_scantable[MAXHEIGHT]
struct edge_s * nextremove
void Turbulent8(espan_t *pspan)
msurface_t * r_alpha_surfaces
cvar_t * sw_reportedgeout
struct swstate_s swstate_t
void R_DrawPolyList(void)
void Draw_GetPicSize(int *w, int *h, char *name)
GLfloat GLfloat GLfloat alpha
void Draw_GetPalette(void)
void R_DrawSurfaceBlock8_mip2(void)
surfcache_t * d_initial_rover
void R_PushDlights(model_t *model)
struct clipplane_s clipplane_t
struct model_s * R_RegisterModel(char *name)
void R_IMFlatShadedQuad(vec3_t a, vec3_t b, vec3_t c, vec3_t d, int color, float alpha)
void R_AliasClipTriangle(finalvert_t *index0, finalvert_t *index1, finalvert_t *index2)
void SWimp_BeginFrame(float camera_separation)
void LoadPCX(char *filename, byte **pic, byte **palette, int *width, int *height)
float horizontalFieldOfView
void R_EdgeCodeStart(void)
void R_AnimateLight(void)
void R_DrawBeam(entity_t *e)
void R_StepActiveU(edge_t *pedge)
byte r_warpbuffer[WARP_WIDTH *WARP_HEIGHT]
void Draw_Pic(int x, int y, char *name)
unsigned d_8to24table[256]
int d_vrectbottom_particle
void R_LightPoint(vec3_t p, vec3_t color)
void R_FreeUnusedImages(void)
cvar_t * sw_reportsurfout
void R_EndRegistration(void)
void R_RenderFace(msurface_t *fa, int clipflags)
clipplane_t view_clipplanes[4]
void R_RenderBmodelFace(bedge_t *pedges, msurface_t *psurf)
void R_AliasDrawModel(void)
void Draw_StretchPic(int x, int y, int w, int h, char *name)
edge_t * newedges[MAXHEIGHT]
int d_vrectright_particle
void NonTurbulent8(espan_t *pspan)
int r_frustum_indexes[4 *6]
void D_DrawZSpans(espan_t *pspans)
aliastriangleparms_t aliastriangleparms
edge_t * removeedges[MAXHEIGHT]
image_t * R_FindImage(char *name, imagetype_t type)
void R_RenderFrame(refdef_t *fd)
void R_PrintDSpeeds(void)
void R_DrawAlphaSurfaces(void)
void R_BeginFrame(float camera_separation)
GLdouble GLdouble GLdouble w
void R_DrawParticle(void)
void R_InsertNewEdges(edge_t *edgestoadd, edge_t *edgelist)
void R_SplitEntityOnNode2(mnode_t *node)
struct surfcache_s * next
void Draw_InitLocal(void)
byte currentpalette[1024]
void R_TransformPlane(mplane_t *p, float *normal, float *dist)
@ rserr_invalid_fullscreen
void TransformVector(vec3_t in, vec3_t out)
mvertex_t * r_pcurrentvertbase
void SWimp_SetPalette(const unsigned char *palette)
void R_DrawSurfaceBlock8_mip1(void)
void SWimp_Shutdown(void)
struct surfcache_s surfcache_t
void(APIENTRY *qglAccum)(GLenum op
void Draw_TileClear(int x, int y, int w, int h, char *name)
void R_RemoveEdges(edge_t *pedge)