diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-03-04 01:23:35 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-03-04 01:23:35 +0300 |
commit | 29683d623c5532139e82453f87b848a52d1da675 (patch) | |
tree | 02469cc41e3be2d64cd7f5fd28d8ac53c7a5220a /source/blender/editors/screen/glutil.c | |
parent | 053589da7d4f2db5e6ef246d699ce3fd5426218b (diff) |
OpenGL: remove glutil_draw_*_arc (lined, filled)
These helper functions were marked DEPRECATED since they use old OpenGL calls. Now they are marked GONE!
Part of T49043
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r-- | source/blender/editors/screen/glutil.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index ac97321ae1a..f694fb0ce41 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -106,38 +106,6 @@ void set_inverted_drawing(int enable) GL_TOGGLE(GL_DITHER, !enable); } - -void glutil_draw_filled_arc(float start, float angle, float radius, int nsegments) -{ - /* DEPRECATED */ - int i; - - glBegin(GL_TRIANGLE_FAN); - glVertex2f(0.0, 0.0); - for (i = 0; i < nsegments; i++) { - float t = (float) i / (nsegments - 1); - float cur = start + t * angle; - - glVertex2f(cosf(cur) * radius, sinf(cur) * radius); - } - glEnd(); -} - -void glutil_draw_lined_arc(float start, float angle, float radius, int nsegments) -{ - /* DEPRECATED */ - int i; - - glBegin(GL_LINE_STRIP); - for (i = 0; i < nsegments; i++) { - float t = (float) i / (nsegments - 1); - float cur = start + t * angle; - - glVertex2f(cosf(cur) * radius, sinf(cur) * radius); - } - glEnd(); -} - static void imm_draw_circle(PrimitiveType prim_type, unsigned pos, float x, float y, float rad, int nsegments) { immBegin(prim_type, nsegments); |