[PyOpenGL-Users] gl*Pointer() VBO offsets
Brought to you by:
mcfletch
From: Alejandro S. <as...@gm...> - 2010-01-14 23:10:08
|
Hi I've been working with VBO's to speed up my rendering time. I have an array loaded with vertex data up to the middle and from there to the end loaded with color data, but I'm having trouble setting the appropriate offset in the glColorPointer() call. I've tried several approaches but they either raise an exception or draw nothing. The only thing that seems to work is using None (which automatically gets converted to NULL). Does anyone know what would the correct idiom be for converting from an int into the offset "pointer" needed by PyOpenGL? Thanks in advance, Alejandro.- |