[Bf-blender-cvs] [20d02be6b8] blender2.8: OpenGL: remove fdrawline & other helper functions

Mike Erwin noreply at git.blender.org
Tue Mar 21 22:51:31 CET 2017


Commit: 20d02be6b81db1bb99df1e82cff1c2575db40ae4
Author: Mike Erwin
Date:   Tue Mar 21 16:11:17 2017 -0400
Branches: blender2.8
https://developer.blender.org/rB20d02be6b81db1bb99df1e82cff1c2575db40ae4

OpenGL: remove fdrawline & other helper functions

Finally, fdrawline is no more!

Part of T49043 & T49450

===================================================================

M	source/blender/editors/include/BIF_glutil.h
M	source/blender/editors/interface/interface_panel.c
M	source/blender/editors/screen/glutil.c

===================================================================

diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h
index 01a2cf46a3..ab3fd96177 100644
--- a/source/blender/editors/include/BIF_glutil.h
+++ b/source/blender/editors/include/BIF_glutil.h
@@ -38,7 +38,7 @@ struct bContext;
 struct ColorManagedViewSettings;
 struct ColorManagedDisplaySettings;
 
-/* Several functions defined here are being DEPRECATED for Blender 2.8
+/* A few functions defined here are being DEPRECATED for Blender 2.8
  *
  * Do not use them in new code, and you are encouraged to
  * convert existing code to draw without these.
@@ -47,8 +47,6 @@ struct ColorManagedDisplaySettings;
  * - merwin
  */
 
-void fdrawline(float x1, float y1, float x2, float y2); /* DEPRECATED */
-
 /**
  * Draw a circle outline with the given \a radius.
  * The circle is centered at \a x, \a y and drawn in the XY plane.
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index f1ab4b0934..acadcdf3e3 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -50,9 +50,6 @@
 #include "BKE_context.h"
 #include "BKE_screen.h"
 
-#include "BIF_gl.h"
-#include "BIF_glutil.h"
-
 #include "BLF_api.h"
 
 #include "WM_api.h"
@@ -395,22 +392,6 @@ static void ui_offset_panel_block(uiBlock *block)
 
 /**************************** drawing *******************************/
 
-/* extern used by previewrender */
-#if 0 /*UNUSED 2.5*/
-static void uiPanelPush(uiBlock *block)
-{
-	glPushMatrix(); 
-
-	if (block->panel)
-		glTranslatef((float)block->panel->ofsx, (float)block->panel->ofsy, 0.0);
-}
-
-static void uiPanelPop(uiBlock *UNUSED(block))
-{
-	glPopMatrix();
-}
-#endif
-
 /* triangle 'icon' for panel header */
 void UI_draw_icon_tri(float x, float y, char dir, const float color[4])
 {
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c
index fd0e1febdd..f077535f51 100644
--- a/source/blender/editors/screen/glutil.c
+++ b/source/blender/editors/screen/glutil.c
@@ -54,15 +54,6 @@
 
 #include "UI_interface.h"
 
-/* DEPRECATED: use imm_draw_line instead */
-void fdrawline(float x1, float y1, float x2, float y2)
-{
-	glBegin(GL_LINES);
-	glVertex2f(x1, y1);
-	glVertex2f(x2, y2);
-	glEnd();
-}
-
 /* ******************************************** */
 
 void setlinestyle(int nr)




More information about the Bf-blender-cvs mailing list