fho*_*fho 3 opengl vertex-buffer
对于其他缓冲区,有以下功能:
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
);
Run Code Online (Sandbox Code Playgroud)
但是我找不到将元素缓冲区绑定到vao的方法.或者我错过了什么?
PS:添加顶点数组对象和直接状态访问标记是否有意义?