shithub: qk1

ref: e65eec36dd5aa7223691f9557e8236ee78fbd1a9
dir: /span.c/

View raw version
#include "quakedef.h"

void
dospan(byte *pdest, byte *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);
}