OpenGL: remove fdrawbox, sdrawbox, sdrawline

These helper functions were marked DEPRECATED since they use old OpenGL calls. Now they are marked GONE!

Part of T49043
This commit is contained in:
Mike Erwin
2017-03-03 13:26:43 -05:00
parent 6999e82693
commit 3381cf98cb
2 changed files with 0 additions and 37 deletions

View File

@@ -48,9 +48,6 @@ struct ColorManagedDisplaySettings;
*/
void fdrawline(float x1, float y1, float x2, float y2); /* DEPRECATED */
void fdrawbox(float x1, float y1, float x2, float y2); /* DEPRECATED */
void sdrawline(int x1, int y1, int x2, int y2); /* DEPRECATED */
void sdrawbox(int x1, int y1, int x2, int y2); /* DEPRECATED */
void fdrawcheckerboard(float x1, float y1, float x2, float y2); /* DEPRECATED */

View File

@@ -62,19 +62,6 @@ void fdrawline(float x1, float y1, float x2, float y2)
glEnd();
}
void fdrawbox(float x1, float y1, float x2, float y2)
{
/* DEPRECATED: use imm_draw_line_box instead */
glBegin(GL_LINE_LOOP);
glVertex2f(x1, y1);
glVertex2f(x1, y2);
glVertex2f(x2, y2);
glVertex2f(x2, y1);
glEnd();
}
void fdrawcheckerboard(float x1, float y1, float x2, float y2)
{
/* DEPRECATED: use imm_draw_checker_box instead */
@@ -90,27 +77,6 @@ void fdrawcheckerboard(float x1, float y1, float x2, float y2)
GPU_basic_shader_bind(GPU_SHADER_USE_COLOR);
}
void sdrawline(int x1, int y1, int x2, int y2) /* DEPRECATED */
{
glBegin(GL_LINES);
glVertex2i(x1, y1);
glVertex2i(x2, y2);
glEnd();
}
void sdrawbox(int x1, int y1, int x2, int y2)
{
/* DEPRECATED: use imm_draw_line_box instead */
glBegin(GL_LINE_LOOP);
glVertex2i(x1, y1);
glVertex2i(x1, y2);
glVertex2i(x2, y2);
glVertex2i(x2, y1);
glEnd();
}
/* ******************************************** */