[Glide64] Code cleanup of Glide64/Util.cpp
This commit is contained in:
parent
26122a337d
commit
a2747bb9d1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue