From 80c35c57ee044b6f5f453bebde1170e0876ebd16 Mon Sep 17 00:00:00 2001 From: daid303 Date: Wed, 16 Jan 2013 11:24:17 +0100 Subject: [PATCH] Use better font rending for the X/Y/Z --- Cura/gui/util/opengl.py | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/Cura/gui/util/opengl.py b/Cura/gui/util/opengl.py index 9e009ca2..37a4c54e 100644 --- a/Cura/gui/util/opengl.py +++ b/Cura/gui/util/opengl.py @@ -212,12 +212,8 @@ def DrawMachine(machineSize): glPushMatrix() glTranslate(23, 0, 0) noZ = ResetMatrixRotationAndScale() - glBegin(GL_LINES) - glVertex3f(-0.8, 1, 0) - glVertex3f(0.8, -1, 0) - glVertex3f(0.8, 1, 0) - glVertex3f(-0.8, -1, 0) - glEnd() + glRasterPos2f(-2,-2) + glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('X')) glPopMatrix() #Y @@ -225,12 +221,8 @@ def DrawMachine(machineSize): glPushMatrix() glTranslate(0, 23, 0) ResetMatrixRotationAndScale() - glBegin(GL_LINES) - glVertex3f(-0.8, 1, 0) - glVertex3f(0.0, 0, 0) - glVertex3f(0.8, 1, 0) - glVertex3f(-0.8, -1, 0) - glEnd() + glRasterPos2f(-2,-2) + glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('Y')) glPopMatrix() #Z @@ -239,16 +231,8 @@ def DrawMachine(machineSize): glPushMatrix() glTranslate(0, 0, 23) ResetMatrixRotationAndScale() - glBegin(GL_LINES) - glVertex3f(-0.8, 1, 0) - glVertex3f(0.8, 1, 0) - glVertex3f(0.8, 1, 0) - glVertex3f(-0.8, -1, 0) - glVertex3f(-0.8, -1, 0) - glVertex3f(0.8, -1, 0) - glEnd() - glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, 64) - glutStrokeCharacter(GLUT_STROKE_ROMAN, 64) + glRasterPos2f(-2,-2) + glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('Z')) glPopMatrix() glPopMatrix() -- 2.30.2