Add const markers to some texture mapping code
This commit is contained in:
parent
e613b81db6
commit
2f4ffebde6
|
@ -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
|
//specifies 2d drawing routines to use instead of defaults. Passing
|
||||||
//NULL for either or both restores defaults
|
//NULL for either or both restores defaults
|
||||||
typedef void (*tmap_drawer_type)(grs_bitmap *bm,int nv,g3s_point **vertlist);
|
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);
|
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);
|
void g3_set_special_render(tmap_drawer_type tmap_drawer,flat_drawer_type flat_drawer,line_drawer_type line_drawer);
|
||||||
|
|
||||||
|
|
|
@ -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
|
// This is the gr_upoly-like interface to the texture mapper which uses texture-mapper compatible
|
||||||
// (ie, avoids cracking) edge/delta computation.
|
// (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
|
//This is like gr_upoly_tmap() but instead of drawing, it calls the specified
|
||||||
//function with ylr values
|
//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;
|
extern int Transparency_on,per2_flag;
|
||||||
|
|
||||||
|
|
|
@ -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
|
// This is the gr_upoly-like interface to the texture mapper which uses texture-mapper compatible
|
||||||
// (ie, avoids cracking) edge/delta computation.
|
// (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);
|
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
|
//This is like gr_upoly_tmap() but instead of drawing, it calls the specified
|
||||||
//function with ylr values
|
//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;
|
g3ds_tmap my_tmap;
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -861,7 +861,7 @@ bool g3_draw_poly(int nv,const g3s_point *const *pointlist)
|
||||||
return 0;
|
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
|
glmprintf((0,"gr_upoly_tmap: unhandled\n"));//should never get called
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue