Re: [PyOpenGL-Users] error using GL_MAX_TEXTURE_BUFFER_SIZE_ARB
Brought to you by:
mcfletch
From: Belzile Marc-A. <ma...@ho...> - 2011-07-05 13:55:12
|
Hi, yes I did. Here's the full code I'm using: """Log opengl info for this machine"""from OpenGL.GL import *from OpenGL.GLUT import *from OpenGL.GL.ARB.texture_buffer_object import *def InitGL(Width, Height): glClearColor(0.0, 0.0, 0.0, 0.0) glMatrixMode(GL_PROJECTION) glLoadIdentity() glMatrixMode(GL_MODELVIEW) def log_opengl_info(): ver = glGetString( GL_VERSION ) ven = glGetString( GL_VENDOR ) ren = glGetString( GL_RENDERER ) print 'vendor: %s\nopenl version: %s\nrenderer: %s\nsupported extensions:' % (ven,ver,ren) #print '\n'.join( glGetString( GL_EXTENSIONS ).split(' ') ) print 'OpenGL.GL.ARB.texture_buffer_object %d\n' % glInitTextureBufferObjectARB() print glGetIntegerv( GL_MAX_TEXTURE_BUFFER_SIZE_ARB )def render(): glClear(GL_COLOR_BUFFER_BIT) glLoadIdentity() log_opengl_info()window = None def main(): global window glutInit(sys.argv) glutInitDisplayMode(GLUT_RGBA) glutInitWindowSize(10, 10) glutInitWindowPosition(0, 0) window = glutCreateWindow('log opengl info') glutDisplayFunc(render) # Initialize our window. InitGL(10, 10) # Start Event Processing Engine glutMainLoop()if __name__ == "__main__": main() From: as...@gm... Date: Tue, 5 Jul 2011 10:14:14 -0300 Subject: Re: [PyOpenGL-Users] error using GL_MAX_TEXTURE_BUFFER_SIZE_ARB To: ma...@ho... CC: pyo...@li... Hi Mab, Hi, using GL_MAX_TEXTURE_BUFFER_SIZE_ARB ends up with an error Have you tried creating a window with an OpenGL context before trying to call glGetIntegerv? Alejandro.- -- http://alejandrosegovia.net |