How do you use glBufferData() in the PyOpenGL python bindings to OpenGL?
When I run the following code
import sys from OpenGL.GL import * from PySide
As a workaround, until lists are supported, pass the vertices as a numpy array:
vertices = numpy.array([0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5], dtype='float32')
The glVertexPointer call should be glVertexPointer(2, GL_FLOAT, 0, None)
glVertexPointer(2, GL_FLOAT, 0, None)