287 B
287 B
OpenGLVertexArray::Bind
void Bind() const
绑定顶点数组对象到当前 OpenGL 上下文。
示例:
vao.Bind();
glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, 0);
相关文档
- OpenGLVertexArray - 返回类总览
void Bind() const
绑定顶点数组对象到当前 OpenGL 上下文。
示例:
vao.Bind();
glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, 0);