diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-12 21:19:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-02-14 02:35:25 +0300 |
commit | 9c35907ca2c7963d722de469e9116350da70b71b (patch) | |
tree | 4bb192a0b32c7d7789615a41c58864eb9c4b80df /source/blender/editors/include/BIF_glutil.h | |
parent | 1634cef2b3dece45a015e7f89676942461119b8a (diff) |
OpenGL immediate mode: Replacement for gluCylinder
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 d0bd951344e..0355925f837 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -138,6 +138,20 @@ void imm_draw_line(unsigned pos, float x1, float y1, float x2, float y2); void imm_cpack(unsigned int x); /** +* Draw a cylinder. Replacement for gluCylinder. +* _warning_ : Slow, better use it only if you no other choices. +* +* \param pos The vertex attribute number for position. +* \param nor The vertex attribute number for normal. +* \param base Specifies the radius of the cylinder at z = 0. +* \param top Specifies the radius of the cylinder at z = height. +* \param height Specifies the height of the cylinder. +* \param slices Specifies the number of subdivisions around the z axis. +* \param stacks Specifies the number of subdivisions along the z axis. +*/ +void imm_cylinder(unsigned int pos, unsigned int nor, float base, float top, float height, int slices, int stacks); + +/** * Returns a float value as obtained by glGetFloatv. * The param must cause only one value to be gotten from GL. */ |