Hello,
I was wondering, is there a way to use glDrawElements with glBufferSubData with multiple indexes ?
By that I mean :
I parse an obj file and the faces definition tells me which normal goes with which vertex etc. A vertex can be used multiple times and a normal too but they can also be used separately.
I could duplicate the vertices put each vertex/normal/texCoord in a struct... But I would rather use , if that is possible, multiple indexes. Use them to tell OpenGL "use idVertices for the vertices, use idNormals for the normals, ...".
Is that possible or should I prepare the data in a single array of structs and draw it with glDrawArrays ?
rXp>!<