Files
XCEngine/docs/api/rhi/opengl/vertex-array/bind.md

19 lines
287 B
Markdown
Raw Normal View History

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