Creating Vertex Array Object
Matthew Keeter <[email protected]> Sat, 22 Feb 2014 18:19:25 -0500
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
I’m trying to create a vertex array object on Mac OS 10.9 (using PyOpenGL 3.0.2)
and running into a NullFunctionError. They’re definitely supported: OpenGL
Extension Viewer says core features up to 4.1 are implemented, and VAOs were
introduced in 3.0.
Here’s a 6-line example that reproduces the issue:
from OpenGL.GL import *
from OpenGL.GLUT import *
glutInit()
glutCreateWindow("GL test")
print glGenBuffers(1)
print glGenVertexArrays(1)
which fails with the exception
OpenGL.error.NullFunctionError: Attempt to call an undefined function glGenVertexArrays, check for bool(glGenVertexArrays) before calling
Can anyone familiar with function construction help me track this down?
Thanks,
Matt
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users