For the other buffers there are functions like:
glVertexArrayVertexAttribOffsetEXT(
this->handle, // vao handle
vbo.getHandle(), // vbo handle
index, // specifies the index of the generic vertex attribute to be modified.
size, // number of components per generic vertex attribute
vbo.getType(), // specifies the data type of each component in the array
normalized, // specifies whether fixed-point data values should be normalized
stride, // specifies the byte offset between consecutive generic vertex attributes
offset // specifies开发者_如何转开发 a pointer to the first component of the first generic vertex attribute in the array
);
But i can't find a method for binding the element buffer to the vao. Or am i missing something there?
PS: does it make sense to add vertex-array-object and direct-state-access tags?
You can't find it because it's not part of it.
The DSA extension was designed prior to VAO being part of GL3.0, and modified later on to interact with it. I would not be surprised it's a hole in the specification. Feel free to contact the specification owner (listed at the top of the extension)
精彩评论