对于其他缓冲区,有如下函数:
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
);但是我找不到将元素缓冲区绑定到vao的方法。还是我错过了什么?
PS:添加vertex-array-object和direct-state-access标签有意义吗?
发布于 2010-09-23 17:54:26
你找不到它,因为它不是它的一部分。
DSA扩展是在VAO成为GL3.0的一部分之前设计的,后来进行了修改以与其交互。这是规范中的一个漏洞,我对此并不感到惊讶。请随时联系规范所有者(列在extension顶部)
https://stackoverflow.com/questions/3776726
复制相似问题