[Glide64] Code cleanup of Glide64/Util.cpp

This commit is contained in:
zilmar 2016-01-20 20:59:35 +11:00
parent 26122a337d
commit a2747bb9d1
1 changed files with 1813 additions and 1820 deletions

View File

@ -160,7 +160,6 @@ int cull_tri(VERTEX **v) // type changed to VERTEX** [Dave2001]
return FALSE;
}
void apply_shade_mods(VERTEX *v)
{
float col[4];
@ -905,7 +904,6 @@ static void Create1LineEq(LineEuqationType &l, VERTEX &v1, VERTEX &v2, VERTEX &v
}
}
__inline double interp3p(float a, float b, float c, double r1, double r2)
{
return (a)+(((b)+((c)-(b))*(r2)) - (a))*(r1);
@ -917,7 +915,6 @@ __inline double interp3p(float a, float b, float c, double r1, double r2)
static void InterpolateColors3(VERTEX &v1, VERTEX &v2, VERTEX &v3, VERTEX &out)
{
LineEuqationType line;
Create1LineEq(line, v2, v3, v1);
@ -1091,7 +1088,6 @@ va_end(ap);
//#define LOGG(x)
//#define FRDP2(x)
void clip_tri(int interpolate_colors)
{
int i, j, index, n = rdp.n_global;
@ -1502,7 +1498,6 @@ static void render_tri (uint16_t linew, int old_interpolate)
//*
if ((rdp.clip & CLIP_ZMIN) && (rdp.othermode_l & 0x00000030))
{
int to_render = FALSE;
for (i = 0; i < n; i++)
{
@ -1639,7 +1634,6 @@ static void render_tri (uint16_t linew, int old_interpolate)
}
else
{
// VERTEX ** pv = rdp.vtx_buffer?(vtx_list2):(vtx_list1);
// for (int k = 0; k < n; k ++)
// FRDP ("DRAW[%d]: v.x = %f, v.y = %f, v.z = %f, v.u = %f, v.v = %f\n", k, pv[k]->x, pv[k]->y, pv[k]->z, pv[k]->coord[rdp.t0<<1], pv[k]->coord[(rdp.t0<<1)+1]);
@ -2180,4 +2174,3 @@ void set_message_combiner ()
&fontTex);
grFogMode(GR_FOG_DISABLE);
}