I'm modifying bits of a OpenGL_accelerate.vbo.VBO object at different moments, and I'd like to print the actual whole content this object (for debug purpose).
A simple print(my_vbo)
doesn't work (it prints <OpenGL_accelerate.vbo.VBO object at 0x0000019FA8370430>
)
Is there a simple way to get it with PyOpenGL (or must I maintain a numpy copy of the data) ?
You need to create an array of
GLfloat
and read the buffer back from the GPU into that array withglGetBufferSubData
. Finally, you can print the array as a list