diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-08-20 22:40:08 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-08-20 22:40:08 +0300 |
commit | be2bc7e0f66b9ed1c863790b3555aa3e7db4cb76 (patch) | |
tree | 6662e4f1aea3e627d1c0cc3a5e2621229063a094 /source/blender/editors/include/BIF_glutil.h | |
parent | eb717ee9794a0e3c217f7e6f32904a115fc6e9e1 (diff) |
OpenGL: draw color picker wheel with new immediate mode
Includes new imm_draw_lined_circle function that can be used for other
widgets.
Part of T49043
Diffstat (limited to 'source/blender/editors/include/BIF_glutil.h')
-rw-r--r-- | source/blender/editors/include/BIF_glutil.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index dfb22ad3897..40d46396c6a 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -81,6 +81,20 @@ void glutil_draw_lined_arc(float start, float angle, float radius, int nsegments void glutil_draw_filled_arc(float start, float angle, float radius, int nsegments); /** + * Draw a circle outline with the given \a radius, + * starting at angle \a start and arcing through + * \a angle. The circle is centered at \a x, \a y + * and drawn in the XY plane. + * + * \param pos The vertex attribute number for position. + * \param x Horizontal center. + * \param y Vertical center. + * \param radius The circle's radius. + * \param nsegments The number of segments to use in drawing (more = smoother). + */ +void imm_draw_lined_circle(unsigned pos, float x, float y, float radius, int nsegments); + +/** * Returns a float value as obtained by glGetFloatv. * The param must cause only one value to be gotten from GL. */ |