diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-03 15:08:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-03 15:10:38 +0300 |
commit | fbcb92074893480aa7c2ec14357f1f1a62f63f6a (patch) | |
tree | 276a51f98f5c26f76f6ba74df001f6c6ff61eafa | |
parent | d1e55be96e89c262262d5e79fef70ef3fc12fd6c (diff) |
Rename circle_partial -> disk_partial
We may have a 'disk' function (not the partial version).
-rw-r--r-- | source/blender/editors/include/BIF_glutil.h | 2 | ||||
-rw-r--r-- | source/blender/editors/screen/glutil.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index 53bfef7cad6..ebc6cd86479 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -89,7 +89,7 @@ void imm_draw_filled_circle(unsigned pos, float x, float y, float radius, int ns * \param start: Specifies the starting angle, in degrees, of the disk portion. * \param sweep: Specifies the sweep angle, in degrees, of the disk portion. */ -void imm_draw_filled_circle_partial( +void imm_draw_filled_disk_partial( unsigned pos, float x, float y, float radius_inner, float radius_outer, int nsegments, float start, float sweep); diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index a613537100b..13e3fa2f50b 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -104,9 +104,9 @@ void imm_draw_filled_circle(unsigned pos, float x, float y, float rad, int nsegm } /** - * \note We could have `imm_draw_lined_circle_partial` but currently there is no need. + * \note We could have `imm_draw_lined_disk_partial` but currently there is no need. */ -static void imm_draw_circle_partial( +static void imm_draw_disk_partial( PrimitiveType prim_type, unsigned pos, float x, float y, float rad_inner, float rad_outer, int nsegments, float start, float sweep) { @@ -128,11 +128,11 @@ static void imm_draw_circle_partial( /** * Replacement for gluPartialDisk, (without 'loops' argument). */ -void imm_draw_filled_circle_partial( +void imm_draw_filled_disk_partial( unsigned pos, float x, float y, float rad_inner, float rad_outer, int nsegments, float start, float sweep) { - imm_draw_circle_partial(PRIM_TRIANGLE_STRIP, pos, x, y, rad_inner, rad_outer, nsegments, start, sweep); + imm_draw_disk_partial(PRIM_TRIANGLE_STRIP, pos, x, y, rad_inner, rad_outer, nsegments, start, sweep); } void imm_draw_lined_circle_3D(unsigned pos, float x, float y, float rad, int nsegments) |