Skip to content
Advertisement

Tag: glsl

PyOpenGL – Minimal glDrawArrays Example

I’ve seen many minimal PyOpenGL examples, but none of the ones I’ve found make use of VAOs or glDrawArrays / glDrawElements. Instead they all use glVertex, glut shapes, and occasionally the old glCallList function. I’m now trying to write a minimal working example that uses vertex arrays and buffers for vertex data. If I understand PyOpenGL correctly, the following code

Advertisement