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
You can also use the array object of the array module:
from array import array vert=[0.0,0.0,0.0, 1.0,0.0,0.0, 1.0,1.0,0.0, 0.0,1.0,0.0] ar=array("f",vert) glBufferData(GL_ARRAY_BUFFER, ar.tostring(), GL_STATIC_DRAW)
https://docs.python.org/2/library/array.html