def get_info_GL_str(self): if not self.isReady: sMsg = "" else: info = GLInfo() info.set_active_context() sMsg = "OpenGL : v" + info.get_version() return sMsg
def get_info_GL_str(self): if not self.isReady: sMsg = "" else: info = GLInfo() info.set_active_context() sMsg = "OpenGL : v" +info.get_version() return sMsg
def get_info_renderer_str(self): if not(self.isReady): sMsg = "" else: info = GLInfo() info.set_active_context() sMsg = "Renderer : " +info.get_renderer() +" by " +info.get_vendor() return sMsg
def initGL(self): self.isModelLoaded = True self.glWindow = pyglet.window.Window(self.viewWidth, self.viewHeight, caption='Mesh orientation', resizable=True) self.lightfv = ctypes.c_float * 4 self.glWindow.set_visible(False) glMatrixMode(GL_PROJECTION) # OpenGL INFO info = GLInfo() info.set_active_context() print("-- OpenGL use the " + str(info.get_renderer()))
def get_info_renderer_str(self): if not (self.isReady): sMsg = "" else: info = GLInfo() info.set_active_context() sMsg = "Renderer : " + info.get_renderer( ) + " by " + info.get_vendor() return sMsg
def show_gl_info(): """ Display some information about the GL renderer. """ from pyglet.gl.gl_info import GLInfo info = GLInfo() info.set_active_context() print("GL Info:") print("\tVersion:\t%s" % info.get_version()) print("\tRenderer:\t%s" % info.get_renderer()) print("\tVendor:\t\t%s" % info.get_vendor()) print("\tExtensions:\t%s" % info.get_extensions()) from pyglet.gl.glu_info import GLUInfo info = GLUInfo() info.set_active_context() print() print("GLU Info:") print("\tVersion:\t%s" % info.get_version()) print("\tExtensions:\t%s" % info.get_extensions())