Remove unused g3_draw_rod_tmap return value

This commit is contained in:
Kp 2014-08-12 02:58:46 +00:00
parent 2ae57a8529
commit bc721dbc8f
2 changed files with 4 additions and 20 deletions

View file

@ -96,25 +96,13 @@ static int calc_rod_corners(rod_4point &rod_point_group, g3s_point *bot_point,fi
return 0;
}
//draw a polygon that is always facing you
//returns 1 if off screen, 0 if drew
bool g3_draw_rod_flat(g3s_point *bot_point,fix bot_width,g3s_point *top_point,fix top_width)
{
rod_4point rod;
if (calc_rod_corners(rod,bot_point,bot_width,top_point,top_width))
return 0;
return g3_draw_poly(4,rod.point_list);
}
//draw a bitmap object that is always facing you
//returns 1 if off screen, 0 if drew
bool g3_draw_rod_tmap(grs_bitmap *bitmap,g3s_point *bot_point,fix bot_width,g3s_point *top_point,fix top_width,g3s_lrgb light)
void g3_draw_rod_tmap(grs_bitmap *bitmap,g3s_point *bot_point,fix bot_width,g3s_point *top_point,fix top_width,g3s_lrgb light)
{
rod_4point rod;
if (calc_rod_corners(rod,bot_point,bot_width,top_point,top_width))
return 0;
return;
g3s_uvl uvl_list[4] = {
{ 0x0200,0x0200,0 },
@ -130,7 +118,7 @@ bool g3_draw_rod_tmap(grs_bitmap *bitmap,g3s_point *bot_point,fix bot_width,g3s_
light,
};
return g3_draw_tmap(4,rod.point_list,uvl_list,lrgb_list,bitmap);
g3_draw_tmap(4,rod.point_list,uvl_list,lrgb_list,bitmap);
}
#ifndef OGL

View file

@ -198,13 +198,9 @@ void g3_check_and_draw_tmap(int nv,g3s_point **pointlist,const g3s_uvl *uvl_list
//draws a line. takes two points.
bool g3_draw_line(g3s_point *p0,g3s_point *p1);
//draw a polygon that is always facing you
//returns 1 if off screen, 0 if drew
bool g3_draw_rod_flat(g3s_point *bot_point,fix bot_width,g3s_point *top_point,fix top_width);
//draw a bitmap object that is always facing you
//returns 1 if off screen, 0 if drew
bool g3_draw_rod_tmap(grs_bitmap *bitmap,g3s_point *bot_point,fix bot_width,g3s_point *top_point,fix top_width,g3s_lrgb light);
void g3_draw_rod_tmap(grs_bitmap *bitmap,g3s_point *bot_point,fix bot_width,g3s_point *top_point,fix top_width,g3s_lrgb light);
//draws a bitmap with the specified 3d width & height
//returns 1 if off screen, 0 if drew