mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[sw] Rename d_pzbuffer to d_zbuffer
This commit is contained in:
parent
376a173e66
commit
8ee776e8fb
14 changed files with 19 additions and 20 deletions
|
@ -104,7 +104,7 @@ void D_PolysetAff8Start (void);
|
|||
void D_PolysetAff8End (void);
|
||||
#endif
|
||||
|
||||
extern short *d_pzbuffer;
|
||||
extern short *d_zbuffer;
|
||||
extern int d_zrowbytes, d_zwidth;
|
||||
|
||||
extern int *d_pscantable;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#define TRANSPARENT_COLOR 255
|
||||
|
||||
.extern C(d_zistepu)
|
||||
.extern C(d_pzbuffer)
|
||||
.extern C(d_zbuffer)
|
||||
.extern C(d_zistepv)
|
||||
.extern C(d_zrowbytes)
|
||||
.extern C(d_ziorigin)
|
||||
|
@ -58,7 +58,6 @@
|
|||
.extern C(cacheblock)
|
||||
.extern C(d_viewbuffer)
|
||||
.extern C(cachewidth)
|
||||
.extern C(d_pzbuffer)
|
||||
.extern C(d_zrowbytes)
|
||||
.extern C(d_zwidth)
|
||||
.extern C(d_scantable)
|
||||
|
|
|
@ -821,7 +821,7 @@ LFSpanLoop:
|
|||
fildl espan_t_v(%esi)
|
||||
fildl espan_t_u(%esi)
|
||||
movl espan_t_v(%esi),%ecx
|
||||
movl C(d_pzbuffer),%edi
|
||||
movl C(d_zbuffer),%edi
|
||||
fmuls C(d_zistepu)
|
||||
fxch %st(1)
|
||||
fmuls C(d_zistepv)
|
||||
|
@ -936,7 +936,7 @@ LFNegSpanLoop:
|
|||
fildl espan_t_v(%esi)
|
||||
fildl espan_t_u(%esi)
|
||||
movl espan_t_v(%esi),%ecx
|
||||
movl C(d_pzbuffer),%edi
|
||||
movl C(d_zbuffer),%edi
|
||||
fmuls C(d_zistepu)
|
||||
fxch %st(1)
|
||||
fmuls C(d_zistepv)
|
||||
|
|
|
@ -104,7 +104,7 @@ D_ViewChanged (void)
|
|||
|
||||
for (i = 0; i < vid.height; i++) {
|
||||
d_scantable[i] = i * rowpixels;
|
||||
zspantable[i] = d_pzbuffer + i * d_zwidth;
|
||||
zspantable[i] = d_zbuffer + i * d_zwidth;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ D_DrawParticle (particle_t *pparticle)
|
|||
return;
|
||||
}
|
||||
|
||||
pz = d_pzbuffer + (d_zwidth * v) + u;
|
||||
pz = d_zbuffer + (d_zwidth * v) + u;
|
||||
pdest = d_viewbuffer + d_scantable[v] + u;
|
||||
izi = (int) (zi * 0x8000);
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ C(D_DrawParticle):
|
|||
imull C(d_zrowbytes),%edx // point to the z pixel
|
||||
|
||||
leal (%edx,%eax,2),%edx
|
||||
movl C(d_pzbuffer),%eax
|
||||
movl C(d_zbuffer),%eax
|
||||
|
||||
fistpl C(izi)
|
||||
|
||||
|
|
|
@ -702,7 +702,7 @@ D_RasterizeAliasPolySmooth (void)
|
|||
d_pdestbasestep = screenwidth + ubasestep;
|
||||
d_pdestextrastep = d_pdestbasestep + 1;
|
||||
d_pdest = (byte *) d_viewbuffer + ystart * screenwidth + plefttop[0];
|
||||
d_pz = d_pzbuffer + ystart * d_zwidth + plefttop[0];
|
||||
d_pz = d_zbuffer + ystart * d_zwidth + plefttop[0];
|
||||
|
||||
// TODO: can reuse partial expressions here
|
||||
|
||||
|
@ -775,7 +775,7 @@ D_RasterizeAliasPolySmooth (void)
|
|||
d_pzbasestep = d_zwidth + ubasestep;
|
||||
d_pzextrastep = d_pzbasestep + 1;
|
||||
#endif
|
||||
d_pz = d_pzbuffer + ystart * d_zwidth + plefttop[0];
|
||||
d_pz = d_zbuffer + ystart * d_zwidth + plefttop[0];
|
||||
|
||||
if (ubasestep < 0)
|
||||
working_lstepx = r_lstepx - 1;
|
||||
|
@ -881,10 +881,10 @@ D_PolysetRecursiveDrawLine (int *lp1, int *lp2)
|
|||
|
||||
// draw the point
|
||||
ofs = d_scantable[new[1]] + new[0];
|
||||
if (new[5] > d_pzbuffer[ofs]) {
|
||||
if (new[5] > d_zbuffer[ofs]) {
|
||||
int pix;
|
||||
|
||||
d_pzbuffer[ofs] = new[5];
|
||||
d_zbuffer[ofs] = new[5];
|
||||
pix = skintable[new[3] >> 16][new[2] >> 16];
|
||||
// pix = ((byte *)acolormap)[pix + (new[4] & 0xFF00)];
|
||||
d_viewbuffer[ofs] = pix;
|
||||
|
|
|
@ -389,7 +389,7 @@ D_DrawZSpans (espan_t *pspan)
|
|||
izistep = (int) (d_zistepu * 0x8000 * 0x10000);
|
||||
|
||||
do {
|
||||
pdest = d_pzbuffer + (d_zwidth * pspan->v) + pspan->u;
|
||||
pdest = d_zbuffer + (d_zwidth * pspan->v) + pspan->u;
|
||||
|
||||
count = pspan->count;
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ LSpanLoop:
|
|||
movl sspan_t_u(%ebx),%ebp
|
||||
imull C(d_zrowbytes)
|
||||
shll $1,%ebp // a word per pixel
|
||||
addl C(d_pzbuffer),%eax
|
||||
addl C(d_zbuffer),%eax
|
||||
addl %ebp,%eax
|
||||
movl %eax,C(pz)
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ D_SpriteDrawSpans (sspan_t *pspan)
|
|||
|
||||
do {
|
||||
pdest = (byte *) d_viewbuffer + (screenwidth * pspan->v) + pspan->u;
|
||||
pz = d_pzbuffer + (d_zwidth * pspan->v) + pspan->u;
|
||||
pz = d_zbuffer + (d_zwidth * pspan->v) + pspan->u;
|
||||
|
||||
count = pspan->count;
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ D_InitCaches (void *buffer, int size)
|
|||
sc_base->owner = NULL;
|
||||
sc_base->size = sc_size;
|
||||
|
||||
d_pzbuffer = vid.zbuffer;
|
||||
d_zbuffer = vid.zbuffer;
|
||||
|
||||
D_ClearCacheGuard ();
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ fixed16_t sadjust, tadjust, bbextents, bbextentt;
|
|||
byte *cacheblock;
|
||||
int cachewidth;
|
||||
byte *d_viewbuffer;
|
||||
short *d_pzbuffer;
|
||||
short *d_zbuffer;
|
||||
int d_zrowbytes;
|
||||
int d_zwidth;
|
||||
|
||||
|
|
|
@ -81,13 +81,13 @@ C(bbextentt): .long 0
|
|||
.globl C(cacheblock)
|
||||
.globl C(d_viewbuffer)
|
||||
.globl C(cachewidth)
|
||||
.globl C(d_pzbuffer)
|
||||
.globl C(d_zbuffer)
|
||||
.globl C(d_zrowbytes)
|
||||
.globl C(d_zwidth)
|
||||
C(cacheblock): .long 0
|
||||
C(cachewidth): .long 0
|
||||
C(d_viewbuffer): .long 0
|
||||
C(d_pzbuffer): .long 0
|
||||
C(d_zbuffer): .long 0
|
||||
C(d_zrowbytes): .long 0
|
||||
C(d_zwidth): .long 0
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ D_DrawZPoint (void)
|
|||
short *pz;
|
||||
int izi;
|
||||
|
||||
pz = d_pzbuffer + (d_zwidth * r_zpointdesc.v) + r_zpointdesc.u;
|
||||
pz = d_zbuffer + (d_zwidth * r_zpointdesc.v) + r_zpointdesc.u;
|
||||
pdest = d_viewbuffer + d_scantable[r_zpointdesc.v] + r_zpointdesc.u;
|
||||
izi = (int) (r_zpointdesc.zi * 0x8000);
|
||||
|
||||
|
|
Loading…
Reference in a new issue