PDA

View Full Version : ARB_vertex_program and glInterleavedArrays



ckline
11-10-2002, 03:10 PM
From reading through the ARB_vertex_program extension documentation it seems like there is no equivalent to glInterleavedArrays for use in specifying generic vertex attributes. Is this correct?

I assume that I could continue to use glInterleavedArrays, but I'm trying to avoid aliasing issues by sticking with the generic attributes.

If I am holding N different attributes in an interleaved array, do I need to make N different calls to VertexAttribPointerARB() that specify the same array with a different stride, type, and offset, or is there a better method?

thanks,
chris

pbrown
11-10-2002, 04:46 PM
You are correct -- there is no InterleavedArrays support for vertex attribute arrays. You need to call VertexAttribPointerARB once per array.

Note there is no InterleavedArrays support for multi-texture texture coordinates, fog coordinates, and a number of other attributes.

ckline
11-10-2002, 06:10 PM
Thanks for confirming that for me, jbrown.

On a different note, does glLockArraysEXT work with EnableVertexAttribArrayARB?