首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用直接状态访问将元素缓冲区数组绑定到顶点数组对象?

如何使用直接状态访问将元素缓冲区数组绑定到顶点数组对象?
EN

Stack Overflow用户
提问于 2010-09-23 16:53:58
回答 1查看 1.5K关注 0票数 3

对于其他缓冲区,有如下函数:

代码语言:javascript
复制
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标签有意义吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-09-23 17:54:26

你找不到它,因为它不是它的一部分。

DSA扩展是在VAO成为GL3.0的一部分之前设计的,后来进行了修改以与其交互。这是规范中的一个漏洞,我对此并不感到惊讶。请随时联系规范所有者(列在extension顶部)

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3776726

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档