Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
126 next_edge = edgestoadd->
next;
128 if (edgelist->
u >= edgestoadd->
u)
130 edgelist = edgelist->
next;
131 if (edgelist->
u >= edgestoadd->
u)
133 edgelist = edgelist->
next;
134 if (edgelist->
u >= edgestoadd->
u)
136 edgelist = edgelist->
next;
137 if (edgelist->
u >= edgestoadd->
u)
139 edgelist = edgelist->
next;
144 edgestoadd->
next = edgelist;
147 edgelist->
prev = edgestoadd;
148 }
while ((edgestoadd = next_edge) != NULL);
162 }
while ((pedge = pedge->
nextremove) != NULL);
172 edge_t *pnext_edge, *pwedge;
177 if (pedge->
u < pedge->
prev->
u)
182 if (pedge->
u < pedge->
prev->
u)
187 if (pedge->
u < pedge->
prev->
u)
192 if (pedge->
u < pedge->
prev->
u)
203 pnext_edge = pedge->
next;
212 while (pwedge->
u > pedge->
u) {
213 pwedge = pwedge->
prev;
218 pedge->
prev = pwedge;
220 pwedge->
next = pedge;
247 span->
count = iu - span->
u;
281 if (surf->
key > surf2->
key)
296 }
while (surf->
key < surf2->
key);
298 if (surf->
key == surf2->
key) {
302 goto continue_search;
317 span->
count = iu - span->
u;
356 span->
count = iu - span->
u;
382 float fu, newzi, testzi, newzitop, newzibottom;
384 if (edge->
surfs[1]) {
394 if (surf->
key < surf2->
key)
401 fu = (float)(edge->
u - 0xFFFFF) * (1.0 / 0x100000);
404 newzibottom = newzi * 0.99;
409 if (newzibottom >= testzi) {
413 newzitop = newzi * 1.01;
414 if (newzitop >= testzi) {
425 }
while (surf->
key > surf2->
key);
427 if (surf->
key == surf2->
key) {
431 goto continue_search;
434 fu = (float)(edge->
u - 0xFFFFF) * (1.0 / 0x100000);
437 newzibottom = newzi * 0.99;
442 if (newzibottom >= testzi) {
446 newzitop = newzi * 1.01;
447 if (newzitop >= testzi) {
453 goto continue_search;
465 span->
count = iu - span->
u;
501 if (edge->
surfs[0]) {
700 for (span = surf->
spans; span; span = span->
pnext) {
704 pdest[0] =
color & 0xff;
705 pdest[1] = (
color >> 8) & 0xff;
706 pdest[2] = (
color >> 16) & 0xff;
722 vec3_t p_saxis, p_taxis;
725 mipscale = 1.0 / (float)(1 <<
miplevel);
747 t = 0x10000 * mipscale;
748 sadjust = ((fixed16_t)(DotProduct(p_temp1, p_saxis) * 0x10000 + 0.5)) -
749 ((pface->texturemins[0] << 16) >>
miplevel)
750 + pface->texinfo->offset[0] * t;
751 tadjust = ((fixed16_t)(DotProduct(p_temp1, p_taxis) * 0x10000 + 0.5)) -
752 ((pface->texturemins[1] << 16) >>
miplevel)
753 + pface->texinfo->offset[1] * t;
755 if (pface->texinfo->c.flags & SURF_FLOWING) {
756 if (pface->texinfo->c.flags & SURF_WARP)
804 cacheblock = pface->texinfo->image->pixels[0];
808 vec3_t local_modelorg;
824 if (!(pface->texinfo->c.flags & SURF_WARP))
862 if (!pface->texinfo->image) {
865 cacheblock = pface->texinfo->image->pixels[0];
899 vec3_t local_modelorg;
static void D_CalcGradients(mface_t *pface)
static void D_BackgroundSurf(surf_t *s)
static vec3_t transformed_modelorg
static void R_CleanupSpan(void)
static void(* pdrawfunc)(void)
static void R_GenerateSpans(void)
static int D_MipLevelForScale(float scale)
void D_DrawSpans16(espan_t *pspan)
void R_BeginEdgeFrame(void)
edge_t * removeedges[MAXHEIGHT]
static edge_t edge_sentinel
static void D_TurbulentSurf(surf_t *s)
void D_DrawSurfaces(void)
static void D_DrawflatSurfaces(void)
static void R_TrailingEdge(surf_t *surf, edge_t *edge)
static void R_LeadingEdge(edge_t *edge)
edge_t * newedges[MAXHEIGHT]
static void R_LeadingEdgeBackwards(edge_t *edge)
static vec3_t world_transformed_modelorg
static int edge_tail_u_shift20
float d_scalemip[NUM_MIPS - 1]
static void D_SolidSurf(surf_t *s)
byte * d_spantable[MAXHEIGHT]
void D_DrawTurbulent16(espan_t *pspan, int *warptable)
static int edge_head_u_shift20
struct edge_s * nextremove
void(APIENTRY *qwglDrawBuffer)(GLenum mode)
void R_TransformFrustum(void)
static void R_RemoveEdges(edge_t *pedge)
static void R_StepActiveU(edge_t *pedge)
static void D_SkySurf(surf_t *s)
static edge_t edge_aftertail
static espan_t * max_span_p
void R_RotateBmodel(void)
static void D_FlatFillSurface(surf_t *surf, uint32_t color)
surfcache_t * D_CacheSurface(mface_t *surface, int miplevel)
void R_TransformVector(vec3_t in, vec3_t out)
static void D_DrawZSurfaces(void)
CONST PIXELFORMATDESCRIPTOR int
static void R_GenerateSpansBackward(void)
static void R_InsertNewEdges(edge_t *edgestoadd, edge_t *edgelist)
void D_DrawZSpans(espan_t *pspan)