how can I specify interleaved vertex attributes and vertex indices
- by freefallr
I'm writing a generic ShaderProgram class that compiles a set of Shader objects, passes args to the shader (like vertex position, vertex normal, tex coords etc), then links the shader components into a shader program, for use with glDrawArrays.
My vertex data already exists in a VertexBufferObject that uses the following data structure to create a…