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-05 11:30:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-04-05 11:43:59 +0300
commita4fac21fc5a2e5e3c816884da6499f931dfe6dd1 (patch)
tree4b99909176b694a7d6985f94f5a724ddb60a6bf5 /source/blender/editors/include/BIF_glutil.h
parente9bb018a4aea1b4aeb692cdadce158496a270e32 (diff)
Cleanup: Move imm_draw utils into own file
These were in BIF_glutil which is documented to be removed, so best not define new API's there.
Diffstat (limited to 'source/blender/editors/include/BIF_glutil.h')
-rw-r--r--source/blender/editors/include/BIF_glutil.h89
1 files changed, 0 insertions, 89 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h
index 7db32eb39a0..0d90dab1f1e 100644
--- a/source/blender/editors/include/BIF_glutil.h
+++ b/source/blender/editors/include/BIF_glutil.h
@@ -48,94 +48,6 @@ struct ColorManagedDisplaySettings;
*/
/**
- * Draw a circle outline with the given \a radius.
- * 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);
-
-/* use this version when VertexFormat has a vec3 position */
-void imm_draw_circle_wire_3d(unsigned pos, float x, float y, float radius, int nsegments);
-void imm_draw_circle_fill_3d(unsigned pos, float x, float y, float radius, int nsegments);
-
-/**
- * Draw a filled circle with the given \a radius.
- * 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_circle_fill(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_disk_partial_fill(
- 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.
-* \param x1 left.
-* \param y1 bottom.
-* \param x2 right.
-* \param y2 top.
-*/
-void imm_draw_line_box(unsigned pos, float x1, float y1, float x2, float y2);
-
-/* use this version when VertexFormat has a vec3 position */
-void imm_draw_line_box_3d(unsigned pos, float x1, float y1, float x2, float y2);
-
-/* Draw a standard checkerboard to indicate transparent backgrounds */
-void imm_draw_checker_box(float x1, float y1, float x2, float y2);
-
-/**
-* Pack color into 3 bytes
-*
-* \param x color.
-*/
-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_draw_cylinder_fill_normal_3d(
- unsigned int pos, unsigned int nor, float base, float top, float height, int slices, int stacks);
-void imm_draw_cylinder_wire_3d(unsigned int pos, float base, float top, float height, int slices, int stacks);
-void imm_draw_cylinder_fill_3d(unsigned int pos, 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.
*/
@@ -252,4 +164,3 @@ void glaDrawImBuf_glsl_ctx_clipping(const struct bContext *C,
void immDrawBorderCorners(unsigned int pos, const struct rcti *border, float zoomx, float zoomy);
#endif /* __BIF_GLUTIL_H__ */
-