Add const markers to some texture mapping code

This commit is contained in:
Kp 2013-07-27 21:12:54 +00:00
parent e613b81db6
commit 2f4ffebde6
4 changed files with 6 additions and 6 deletions

View file

@ -206,7 +206,7 @@ bool g3_draw_bitmap(vms_vector *pos,fix width,fix height,grs_bitmap *bm);
//specifies 2d drawing routines to use instead of defaults. Passing
//NULL for either or both restores defaults
typedef void (*tmap_drawer_type)(grs_bitmap *bm,int nv,g3s_point **vertlist);
typedef void (*flat_drawer_type)(int nv,int *vertlist);
typedef void (*flat_drawer_type)(int nv,const int *vertlist);
typedef int (*line_drawer_type)(fix x0,fix y0,fix x1,fix y1);
void g3_set_special_render(tmap_drawer_type tmap_drawer,flat_drawer_type flat_drawer,line_drawer_type line_drawer);

View file

@ -92,11 +92,11 @@ extern void ntexture_map_lighted_linear(grs_bitmap *srcb, g3ds_tmap *t);
// This is the gr_upoly-like interface to the texture mapper which uses texture-mapper compatible
// (ie, avoids cracking) edge/delta computation.
void gr_upoly_tmap(int nverts, int *vert );
void gr_upoly_tmap(int nverts, const int *vert );
//This is like gr_upoly_tmap() but instead of drawing, it calls the specified
//function with ylr values
void gr_upoly_tmap_ylr(int nverts, int *vert, void (*ylr_func)(int, fix, fix) );
void gr_upoly_tmap_ylr(int nverts, const int *vert, void (*ylr_func)(int, fix, fix) );
extern int Transparency_on,per2_flag;

View file

@ -178,7 +178,7 @@ void texture_map_flat(g3ds_tmap *t, int color)
// -----------------------------------------------------------------------------------------
// This is the gr_upoly-like interface to the texture mapper which uses texture-mapper compatible
// (ie, avoids cracking) edge/delta computation.
void gr_upoly_tmap(int nverts, int *vert )
void gr_upoly_tmap(int nverts, const int *vert )
{
gr_upoly_tmap_ylr(nverts, vert, tmap_scanline_flat);
}
@ -236,7 +236,7 @@ void draw_tmap_flat(grs_bitmap *bp,int nverts,g3s_point **vertbuf)
// -----------------------------------------------------------------------------------------
//This is like gr_upoly_tmap() but instead of drawing, it calls the specified
//function with ylr values
void gr_upoly_tmap_ylr(int nverts, int *vert, void (*ylr_func)(int,fix,fix) )
void gr_upoly_tmap_ylr(int nverts, const int *vert, void (*ylr_func)(int,fix,fix) )
{
g3ds_tmap my_tmap;
int i;

View file

@ -861,7 +861,7 @@ bool g3_draw_poly(int nv,const g3s_point *const *pointlist)
return 0;
}
void gr_upoly_tmap(int nverts, int *vert ){
void gr_upoly_tmap(int nverts, const int *vert ){
glmprintf((0,"gr_upoly_tmap: unhandled\n"));//should never get called
}