mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-09 23:02:02 +00:00
Remove adivtab
This commit is contained in:
parent
29bb6e5c6c
commit
07c472cfd2
4 changed files with 6 additions and 1112 deletions
|
@ -521,7 +521,7 @@ set(SOFT-Source
|
|||
${REF_SRC_DIR}/soft/sw_model.c
|
||||
${REF_SRC_DIR}/soft/sw_part.c
|
||||
${REF_SRC_DIR}/soft/sw_poly.c
|
||||
${REF_SRC_DIR}/soft/sw_polyse.c
|
||||
${REF_SRC_DIR}/soft/sw_polyset.c
|
||||
${REF_SRC_DIR}/soft/sw_rast.c
|
||||
${REF_SRC_DIR}/soft/sw_scan.c
|
||||
${REF_SRC_DIR}/soft/sw_sprite.c
|
||||
|
@ -535,7 +535,6 @@ set(SOFT-Source
|
|||
)
|
||||
|
||||
set(SOFT-Header
|
||||
${REF_SRC_DIR}/constants/adivtab.h
|
||||
${REF_SRC_DIR}/soft/header/local.h
|
||||
${REF_SRC_DIR}/soft/header/model.h
|
||||
${COMMON_SRC_DIR}/header/shared.h
|
||||
|
|
2
Makefile
2
Makefile
|
@ -834,7 +834,7 @@ REFSOFT_OBJS_ := \
|
|||
src/client/refresh/soft/sw_model.o \
|
||||
src/client/refresh/soft/sw_part.o \
|
||||
src/client/refresh/soft/sw_poly.o \
|
||||
src/client/refresh/soft/sw_polyse.o \
|
||||
src/client/refresh/soft/sw_polyset.o \
|
||||
src/client/refresh/soft/sw_rast.o \
|
||||
src/client/refresh/soft/sw_scan.o \
|
||||
src/client/refresh/soft/sw_sprite.o \
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -17,13 +17,11 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
*/
|
||||
// d_polyset.c: routines for drawing sets of polygons sharing the same
|
||||
// sw_polyset.c: routines for drawing sets of polygons sharing the same
|
||||
// texture (used for Alias models)
|
||||
|
||||
#include "header/local.h"
|
||||
|
||||
#define MASK_1K 0x3FF
|
||||
|
||||
typedef struct {
|
||||
int isflattop;
|
||||
int numleftedges;
|
||||
|
@ -77,15 +75,6 @@ static int d_lightbasestep, d_ptexbasestep;
|
|||
static int d_sfracbasestep, d_tfracbasestep;
|
||||
static zvalue_t d_ziextrastep, d_zibasestep;
|
||||
|
||||
typedef struct {
|
||||
int quotient;
|
||||
int remainder;
|
||||
} adivtab_t;
|
||||
|
||||
static adivtab_t adivtab[32*32] = {
|
||||
#include "../constants/adivtab.h"
|
||||
};
|
||||
|
||||
static byte *skintable[MAX_LBM_HEIGHT];
|
||||
int skinwidth;
|
||||
static byte *skinstart;
|
||||
|
@ -359,33 +348,16 @@ static void
|
|||
R_PolysetSetUpForLineScan(fixed8_t startvertu, fixed8_t startvertv,
|
||||
fixed8_t endvertu, fixed8_t endvertv)
|
||||
{
|
||||
int tm, tn;
|
||||
adivtab_t *ptemp;
|
||||
float tm, tn;
|
||||
|
||||
errorterm = -1;
|
||||
|
||||
tm = endvertu - startvertu;
|
||||
tn = endvertv - startvertv;
|
||||
|
||||
if (((tm <= 16) && (tm >= -15)) &&
|
||||
((tn <= 16) && (tn >= -15)))
|
||||
{
|
||||
ptemp = &adivtab[((tm+15) << 5) + (tn+15)];
|
||||
ubasestep = ptemp->quotient;
|
||||
erroradjustup = ptemp->remainder;
|
||||
erroradjustdown = tn;
|
||||
}
|
||||
else
|
||||
{
|
||||
float dm, dn;
|
||||
FloorDivMod (tm, tn, &ubasestep, &erroradjustup);
|
||||
|
||||
dm = tm;
|
||||
dn = tn;
|
||||
|
||||
FloorDivMod (dm, dn, &ubasestep, &erroradjustup);
|
||||
|
||||
erroradjustdown = dn;
|
||||
}
|
||||
erroradjustdown = tn;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in a new issue