Renamed "fake" OpenGL identifiers.
Any identifier that looks like an OpenGL identifier, but isn't, causes a false alarm by the glreport.py tool. Most of these were in comments so I just rephrased the comments. There were a couple of static functions/macros that were easy enough to rename. Only the glTexco and glIndex fields of the DMVertexAttribs struct was public and had non-local uses.
This commit is contained in:
@@ -1196,7 +1196,7 @@ void ui_draw_but_NORMAL(uiBut *but, uiWidgetColors *wcol, rcti *rect)
|
||||
|
||||
ui_get_but_vectorf(but, dir);
|
||||
|
||||
dir[3] = 0.0f; /* glLight needs 4 args, 0.0 is sun */
|
||||
dir[3] = 0.0f; /* glLightfv needs 4 args, 0.0 is sun */
|
||||
glLightfv(GL_LIGHT7, GL_POSITION, dir);
|
||||
glLightfv(GL_LIGHT7, GL_DIFFUSE, diffn);
|
||||
glLightfv(GL_LIGHT7, GL_SPECULAR, vec0);
|
||||
@@ -1281,7 +1281,7 @@ static void ui_draw_but_curve_grid(rcti *rect, float zoomx, float zoomy, float o
|
||||
|
||||
}
|
||||
|
||||
static void glColor3ubvShade(unsigned char *col, int shade)
|
||||
static void gl_shaded_color(unsigned char *col, int shade)
|
||||
{
|
||||
glColor3ub(col[0] - shade > 0 ? col[0] - shade : 0,
|
||||
col[1] - shade > 0 ? col[1] - shade : 0,
|
||||
@@ -1318,7 +1318,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, rcti *rect
|
||||
|
||||
/* backdrop */
|
||||
if (cumap->flag & CUMA_DO_CLIP) {
|
||||
glColor3ubvShade((unsigned char *)wcol->inner, -20);
|
||||
gl_shaded_color((unsigned char *)wcol->inner, -20);
|
||||
glRectf(rect->xmin, rect->ymin, rect->xmax, rect->ymax);
|
||||
glColor3ubv((unsigned char *)wcol->inner);
|
||||
glRectf(rect->xmin + zoomx * (cumap->clipr.xmin - offsx),
|
||||
@@ -1332,13 +1332,13 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, rcti *rect
|
||||
}
|
||||
|
||||
/* grid, every .25 step */
|
||||
glColor3ubvShade((unsigned char *)wcol->inner, -16);
|
||||
gl_shaded_color((unsigned char *)wcol->inner, -16);
|
||||
ui_draw_but_curve_grid(rect, zoomx, zoomy, offsx, offsy, 0.25f);
|
||||
/* grid, every 1.0 step */
|
||||
glColor3ubvShade((unsigned char *)wcol->inner, -24);
|
||||
gl_shaded_color((unsigned char *)wcol->inner, -24);
|
||||
ui_draw_but_curve_grid(rect, zoomx, zoomy, offsx, offsy, 1.0f);
|
||||
/* axes */
|
||||
glColor3ubvShade((unsigned char *)wcol->inner, -50);
|
||||
gl_shaded_color((unsigned char *)wcol->inner, -50);
|
||||
glBegin(GL_LINES);
|
||||
glVertex2f(rect->xmin, rect->ymin + zoomy * (-offsy));
|
||||
glVertex2f(rect->xmax, rect->ymin + zoomy * (-offsy));
|
||||
|
||||
Reference in New Issue
Block a user