Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-04-03 08:20:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-04-03 08:25:43 +0300
commitd1e55be96e89c262262d5e79fef70ef3fc12fd6c (patch)
tree00c17bb450e93fd8bbd5c0152acdfdd16e7d0046 /source/blender/editors/include/BIF_glutil.h
parenteba09b1520c06df304bc353e93d7220b4e83b755 (diff)
Add gluPartialDisk replacement (imm_draw_filled_circle_partial)
Needed for custom-manipulators branch but generally useful.
Diffstat (limited to 'source/blender/editors/include/BIF_glutil.h')
-rw-r--r--source/blender/editors/include/BIF_glutil.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h
index ab3fd961773..53bfef7cad6 100644
--- a/source/blender/editors/include/BIF_glutil.h
+++ b/source/blender/editors/include/BIF_glutil.h
@@ -75,6 +75,25 @@ void imm_draw_lined_circle_3D(unsigned pos, float x, float y, float radius, int
void imm_draw_filled_circle(unsigned pos, float x, float y, float radius, int nsegments);
/**
+ * Draw a filled arc with the given inner and outer radius.
+ * The circle is centered at \a x, \a y and drawn in the XY plane.
+ *
+ * \note Arguments are `gluPartialDisk` compatible.
+ *
+ * \param pos: The vertex attribute number for position.
+ * \param x: Horizontal center.
+ * \param y: Vertical center.
+ * \param radius_inner: The inner circle's radius.
+ * \param radius_outer: The outer circle's radius (can be zero).
+ * \param nsegments: The number of segments to use in drawing (more = smoother).
+ * \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(
+ unsigned pos, float x, float y,
+ float radius_inner, float radius_outer, int nsegments, float start, float sweep);
+
+/**
* Draw a lined box.
*
* \param pos The vertex attribute number for position.