shithub: qk1

ref: bb5d36fa55021e81d20e8cd1309c6a163b4fe498
dir: /span.c/

View raw version
#include "quakedef.h"

void
dospan(pixel_t *pdest, pixel_t *pbase, int s, int t, int sstep, int tstep, int spancount, int cachewidth)
{
	do{
		*pdest++ = pbase[(s >> 16) + (t >> 16) * cachewidth];
		s += sstep;
		t += tstep;
	}while(--spancount);
}