# OpenGLVertexArray::Bind ```cpp void Bind() const ``` 绑定顶点数组对象到当前 OpenGL 上下文。 **示例:** ```cpp vao.Bind(); glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, 0); ``` ## 相关文档 - [OpenGLVertexArray](vertex-array.md) - 返回类总览