FTEQW
Documentation of the FTE engine source tree.
sw_spans.h File Reference

Go to the source code of this file.

Functions

 if (!img) return
 
 if (v1->vcoord[1] > v2->vcoord[1])
 
 if (v1->vcoord[1] > v3->vcoord[1])
 
 if (v2->vcoord[1] > v3->vcoord[1])
 
 for (i=0;i< 3;i++)
 
 if (fz==0)
 
 for (secondhalf=0;secondhalf<=1;secondhalf++)
 

Variables

int y
 
int secondhalf
 
int xl
 
int xld
 
int xr
 
int xrd
 
float sl
 
float sld = fdx1*d2 - fdx2*d1
 
float sd = fdy2*d1 - fdy1*d2
 
float tl
 
float tld = fdx1*d2 - fdx2*d1
 
float td = fdy2*d1 - fdy1*d2
 
unsigned int zl
 
unsigned int zld = fdx1*d2 - fdx2*d1
 
unsigned int zd = fdy2*d1 - fdy1*d2
 
unsigned int *restrict outbuf
 
unsigned int *restrict ti = img->data
 
int i
 
const swvert_tvlt
 
const swvert_tvlb
 
const swvert_tvrt
 
const swvert_tvrb
 
int spanlen
 
int numspans
 
unsigned intvplout
 
int dx
 
int dy
 
int recalcside
 
int interlace
 
float fdx1 = v2->vcoord[0] - v1->vcoord[0]
 
float fdy1 = v2->vcoord[1] - v1->vcoord[1]
 
float fdx2 = v3->vcoord[0] - v1->vcoord[0]
 
float fdy2 = v3->vcoord[1] - v1->vcoord[1]
 
float fz = fdx1*fdy2 - fdx2*fdy1
 
float d1 = v2->tccoord[0] - v1->tccoord[0]
 
float d2 = v3->tccoord[0] - v1->tccoord[0]
 
 v [0] = v1
 

Function Documentation

◆ for() [1/2]

for ( )

◆ for() [2/2]

for ( secondhalf  = 0; secondhalf <= 1; secondhalf++)

vlb == v3;

◆ if() [1/5]

if ( img)

◆ if() [2/5]

if ( fz  = = 0)

◆ if() [3/5]

if ( v1->  vcoord[1],
v2->  vcoord[1] 
)

◆ if() [4/5]

if ( v1->  vcoord[1],
v3->  vcoord[1] 
)

◆ if() [5/5]

if ( v2->  vcoord[1],
v3->  vcoord[1] 
)

Variable Documentation

◆ d1

fdx1 *fdy1 *fdx2 *fdy2 * d1 = v2->tccoord[0] - v1->tccoord[0]

◆ d2

d2 = v3->tccoord[0] - v1->tccoord[0]

◆ dx

int dx

◆ dy

int dy

◆ fdx1

fdx1 = v2->vcoord[0] - v1->vcoord[0]

◆ fdx2

fdx2 = v3->vcoord[0] - v1->vcoord[0]

◆ fdy1

fdy1 = v2->vcoord[1] - v1->vcoord[1]

◆ fdy2

fdy2 = v3->vcoord[1] - v1->vcoord[1]

◆ fz

fz = fdx1*fdy2 - fdx2*fdy1

◆ i

int i

◆ interlace

int interlace

◆ numspans

int numspans

◆ outbuf

unsigned int* restrict outbuf

◆ recalcside

int recalcside

◆ sd

sd = fdy2*d1 - fdy1*d2

◆ secondhalf

int secondhalf

◆ sl

float sl

◆ sld

sld = fdx1*d2 - fdx2*d1

◆ spanlen

int spanlen

◆ td

td = fdy2*d1 - fdy1*d2

◆ ti

ti = img->data

◆ tl

float tl

◆ tld

tld = fdx1*d2 - fdx2*d1

◆ v

v[2] = v1

◆ vlb

const swvert_t * vlb

◆ vlt

const swvert_t* vlt

◆ vplout

unsigned int* vplout

◆ vrb

const swvert_t * vrb

◆ vrt

const swvert_t * vrt

◆ xl

int xl

◆ xld

int xld

◆ xr

int xr

◆ xrd

int xrd

◆ y

y
Initial value:
{
Definition: sw.h:41

◆ zd

zd = fdy2*d1 - fdy1*d2

◆ zl

unsigned int zl

◆ zld

zld = fdx1*d2 - fdx2*d1