Go to the documentation of this file.
61 static int cached_width, cached_height;
62 static byte *rowptr[4200 +
AMP2 * 2];
63 static int column[2400 +
AMP2 * 2];
70 if (
w != cached_width || h != cached_height)
74 for (
v = 0;
v < h +
AMP2 * 2;
v++)
92 col = &column[turb[
v]];
94 for (
u = 0;
u <
w;
u += 4)
96 dest[
u + 0] = row[turb[
u + 0]][col[
u + 0]];
97 dest[
u + 1] = row[turb[
u + 1]][col[
u + 1]];
98 dest[
u + 2] = row[turb[
u + 2]][col[
u + 2]];
99 dest[
u + 3] = row[turb[
u + 3]][col[
u + 3]];
114 static int sturb, tturb;
127 tturb = (tturb >> 16) & 63;
128 sturb = (sturb >> 16) & 63;
172 du = (float)pspan->
u;
173 dv = (
float)pspan->
v;
178 z = (float)0x10000 /
zi;
209 z = (float)0x10000 /
zi;
238 z = (float)0x10000 /
zi;
270 }
while ((pspan = pspan->
pnext) !=
NULL);
304 du = (float)pspan->
u;
305 dv = (
float)pspan->
v;
310 z = (float)0x10000 /
zi;
341 z = (float)0x10000 /
zi;
370 z = (float)0x10000 /
zi;
402 }
while ((pspan = pspan->
pnext) !=
NULL);
427 #define WRITEPDEST(i) { pdest[i] = *(pbase + (s >> 16) + (t >> 16) * cachewidth); s+=sstep; t+=tstep;}
447 du = (float)pspan->
u;
448 dv = (
float)pspan->
v;
453 z = (float)0x10000 /
zi;
468 z = (float)0x10000 /
zi;
506 z = (float)0x10000 /
zi;
561 }
while ((pspan = pspan->
pnext) !=
NULL);
590 du = (
float)pspan->
u;
591 dv = (float)pspan->
v;
595 izi = (
int)(
zi * 0x8000 * 0x10000);
597 if ((intptr_t)
pdest & 0x02)
610 ltemp |=
izi & 0xFFFF0000;
612 *(
int *)
pdest = ltemp;
620 }
while ((pspan = pspan->
pnext) !=
NULL);
CONST PIXELFORMATDESCRIPTOR int
void NonTurbulent8(espan_t *pspan)
static float spancountminus1
void Turbulent8(espan_t *pspan)
static fixed16_t r_turb_t
void D_DrawTurbulent8Span(espan_t *pspan)
static byte * r_turb_pbase
#define DitherKernel2(u, v, X, Y)
GLdouble GLdouble GLint GLint GLdouble GLdouble v2
static fixed16_t r_turb_s
static fixed16_t r_turb_tstep
void D_DrawZSpans(espan_t *pspan)
static byte * r_turb_pdest
static fixed16_t r_turb_sstep
GLdouble GLdouble GLdouble w
static int r_turb_spancount
void D_DrawSpans16(espan_t *pspan)