Archives March 3, 2009

glInterleavedArrays is deprecated...

Doing a bit of after-work hacking on the PyOpenGL presentation, just realized that glInterleavedArrays is deprecated.  It's pretty trivial to rewrite as array pointers when you have VBO objects:

glInterleavedArrays( GL_T2F_N3F_V3F, 0, data )

Becomes:

glEnable( GL_VERTEX_ARRAY )
glEnable( GL_NORMAL_ARRAY )
glEnable( GL_TEXTURE_COORD_ARRAY )
glVertexPointer( len(data), GL_FLOAT, 32, data+20 )
glNormalPointer( len(data), GL_FLOAT, 32, data+8 ...

Continue reading

Previous day

March 2, 2009

Next day

March 5, 2009

Archives