[PyOpenGL-Users] Creating Vertex Array Object
Brought to you by:
mcfletch
From: Matthew K. <mat...@gm...> - 2014-02-22 23:19:33
|
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 |