How to "bind" an element buffer array to a vertex array object using direct access to content?

For other buffers, there are functions such as:

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 not find the method of binding the element buffer to vao. Or did I miss something there?

PS: does it make sense to add tags to the vertex object array and direct access?

+3
source share
1 answer

You cannot find it because it is not part of it.

The DSA extension was developed before VAO is part of GL3.0 and subsequently modified to interact with it. I will not be surprised that this is a hole in the specification. Feel free to contact the owner of the specification (listed at the top of the extension )

+5

Source: https://habr.com/ru/post/1766169/


All Articles