vertex array stride with VAR

well, I’ve got a (stupid?) question, I read the NV_vertex_array_range extension paper and this is specified that the vertex array stride must be a multiple of 4 bytes, can I set the stride to zero ? As all examples that I downloaded use of stride whereas I don’t (ex : glVertexPointer(3, GL_FLOAT, 0, vertices) ). Should I use a big float array which contains vertices, normals, textures coordinate and stride or can I use seperate array (that is what I do at present)?


OpenGL doesn’t actually support strides of zero. When it sees zero, it replaces it by a tightly packed array.

So when you put zero for your 3F vertex array, you are really getting a stride of 12.

A stride of 12 is definitely OK.

  • Matt