diff options
-rw-r--r-- | source/blender/editors/include/BIF_glutil.h | 26 | ||||
-rw-r--r-- | source/blender/editors/screen/glutil.c | 32 |
2 files changed, 0 insertions, 58 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index 206df852fb6..378ba918e50 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -59,32 +59,6 @@ extern const unsigned char stipple_diag_stripes_neg[128]; extern const unsigned char stipple_checker_8px[128]; /** - * Draw a lined (non-looping) arc with the given - * \a radius, starting at angle \a start and arcing - * through \a angle. The arc is centered at the origin - * and drawn in the XY plane. - * - * \param start The initial angle (in radians). - * \param angle The length of the arc (in radians). - * \param radius The arc radius. - * \param nsegments The number of segments to use in drawing the arc. - */ -void glutil_draw_lined_arc(float start, float angle, float radius, int nsegments); /* DEPRECATED */ - -/** - * Draw a filled arc with the given \a radius, - * starting at angle \a start and arcing through - * \a angle. The arc is centered at the origin - * and drawn in the XY plane. - * - * \param start The initial angle (in radians). - * \param angle The length of the arc (in radians). - * \param radius The arc radius. - * \param nsegments The number of segments to use in drawing the arc. - */ -void glutil_draw_filled_arc(float start, float angle, float radius, int nsegments); /* DEPRECATED */ - -/** * Draw a circle outline with the given \a radius. * The circle is centered at \a x, \a y and drawn in the XY plane. * 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); |