From bd38df2a152daca5a0ad83fe1ef4ca63a4befb64 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Mon, 5 Jan 2015 13:58:58 -0800 Subject: [PATCH] replace GL_LINES with a call to renderWireBox for node bounds --- interface/src/ui/NodeBounds.cpp | 44 ++------------------------------- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/interface/src/ui/NodeBounds.cpp b/interface/src/ui/NodeBounds.cpp index fe8a394fe4..a342fe8ada 100644 --- a/interface/src/ui/NodeBounds.cpp +++ b/interface/src/ui/NodeBounds.cpp @@ -12,6 +12,7 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // +#include #include #include "Application.h" @@ -155,52 +156,11 @@ void NodeBounds::draw() { void NodeBounds::drawNodeBorder(const glm::vec3& center, float scale, float red, float green, float blue) { glPushMatrix(); - glTranslatef(center.x, center.y, center.z); glScalef(scale, scale, scale); - glLineWidth(2.5); glColor3f(red, green, blue); - glBegin(GL_LINES); - - glVertex3f(-0.5, -0.5, -0.5); - glVertex3f( 0.5, -0.5, -0.5); - - glVertex3f(-0.5, -0.5, -0.5); - glVertex3f(-0.5, 0.5, -0.5); - - glVertex3f(-0.5, -0.5, -0.5); - glVertex3f(-0.5, -0.5, 0.5); - - glVertex3f(-0.5, 0.5, -0.5); - glVertex3f( 0.5, 0.5, -0.5); - - glVertex3f(-0.5, 0.5, -0.5); - glVertex3f(-0.5, 0.5, 0.5); - - glVertex3f( 0.5, 0.5, 0.5); - glVertex3f(-0.5, 0.5, 0.5); - - glVertex3f( 0.5, 0.5, 0.5); - glVertex3f( 0.5, -0.5, 0.5); - - glVertex3f( 0.5, 0.5, 0.5); - glVertex3f( 0.5, 0.5, -0.5); - - glVertex3f( 0.5, -0.5, 0.5); - glVertex3f(-0.5, -0.5, 0.5); - - glVertex3f( 0.5, -0.5, 0.5); - glVertex3f( 0.5, -0.5, -0.5); - - glVertex3f( 0.5, 0.5, -0.5); - glVertex3f( 0.5, -0.5, -0.5); - - glVertex3f(-0.5, 0.5, 0.5); - glVertex3f(-0.5, -0.5, 0.5); - - glEnd(); - + DependencyManager::get()->renderWireCube(1.0f); glPopMatrix(); }