对于其他缓冲区,有如下函数:
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 标签有意义吗?
您找不到它,因为它不是它的一部分。
DSA 扩展是在 VAO 成为 GL3.0 的一部分之前设计的,后来进行了修改以与其交互。我不会感到惊讶这是规范中的一个漏洞。请随时联系规范所有者(列在规范顶部)扩大 http://www.opengl.org/registry/specs/EXT/direct_state_access.txt)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)