def paintOpenGL(self): """Perform the rendering and logging""" if not self._dump: self._dump = True _logger.info('OpenGL info:') _logger.info('\tQt OpenGL context version: %d.%d', *self.getOpenGLVersion()) _logger.info('\tGL_VERSION: %s' % gl.glGetString(gl.GL_VERSION)) _logger.info('\tGL_SHADING_LANGUAGE_VERSION: %s' % gl.glGetString(gl.GL_SHADING_LANGUAGE_VERSION)) _logger.debug('\tGL_EXTENSIONS: %s' % gl.glGetString(gl.GL_EXTENSIONS)) gl.glClearColor(1., 1., 1., 1.) gl.glClear(gl.GL_COLOR_BUFFER_BIT)
def paintGL(self): gl.glClearColor(1., 0., 0., 0.) gl.glClear(gl.GL_COLOR_BUFFER_BIT)