def _drawGui(self): if self._glButtonsTexture is None: self._glButtonsTexture = openglHelpers.loadGLTexture('glButtons.png') self._glRobotTexture = openglHelpers.loadGLTexture('UltimakerRobot.png') glDisable(GL_DEPTH_TEST) glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) glDisable(GL_LIGHTING) glColor4ub(255,255,255,255) glMatrixMode(GL_PROJECTION) glLoadIdentity() size = self.GetSize() glOrtho(0, size.GetWidth()-1, size.GetHeight()-1, 0, -1000.0, 1000.0) glMatrixMode(GL_MODELVIEW) glLoadIdentity() self._container.draw()
def _drawGui(self): if self._glButtonsTexture is None: self._glButtonsTexture = openglHelpers.loadGLTexture('glButtons.png') self._glRobotTexture = openglHelpers.loadGLTexture('UltimakerRobot.png') glDisable(GL_DEPTH_TEST) glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) glDisable(GL_LIGHTING) glColor4ub(255,255,255,255) glMatrixMode(GL_PROJECTION) glLoadIdentity() size = self.GetSize() glOrtho(0, size.GetWidth()-1, size.GetHeight()-1, 0, -1000.0, 1000.0) glMatrixMode(GL_MODELVIEW) glLoadIdentity() self._container.draw()