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:
authorMike Erwin <significant.bit@gmail.com>2017-01-16 03:26:35 +0300
committerMike Erwin <significant.bit@gmail.com>2017-01-16 03:30:05 +0300
commit4e2c6ad8eeefcefe2683e4949cec47fd383b1a5f (patch)
treed223c1c1a61b115dc94e10cd2baae65ae51c915b /source/blender/editors/screen/glutil.c
parent7eb4c850d382b02fa2eea349ab6718ebbcd4b768 (diff)
Updating outliner_draw_struct_marks to retained mode
Had to add a few utility functions to replace existing functions. Let me know if these are duplicates. Reviewers: merwin Reviewed By: merwin Tags: #bf_blender_2.8 Maniphest Tasks: T49043 Differential Revision: https://developer.blender.org/D2434
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r--source/blender/editors/screen/glutil.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c
index 47593252ecb..ef514dd5e84 100644
--- a/source/blender/editors/screen/glutil.c
+++ b/source/blender/editors/screen/glutil.c
@@ -53,8 +53,8 @@
#include "UI_interface.h"
-
-void fdrawline(float x1, float y1, float x2, float y2) /* DEPRECATED */
+/* DEPRECATED: use imm_draw_line instead */
+void fdrawline(float x1, float y1, float x2, float y2)
{
glBegin(GL_LINES);
glVertex2f(x1, y1);
@@ -213,6 +213,14 @@ void imm_draw_line_box(unsigned pos, float x1, float y1, float x2, float y2)
immEnd();
}
+void imm_draw_line(unsigned pos, float x1, float y1, float x2, float y2)
+{
+ immBegin(PRIM_LINES, 2);
+ immVertex2f(pos, x1, y1);
+ immVertex2f(pos, x2, y2);
+ immEnd();
+}
+
void imm_draw_line_box_3D(unsigned pos, float x1, float y1, float x2, float y2)
{
/* use this version when VertexFormat has a vec3 position */