docs: update RHI API docs
This commit is contained in:
18
docs/api/rhi/opengl/vertex-array/bind.md
Normal file
18
docs/api/rhi/opengl/vertex-array/bind.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# OpenGLVertexArray::Bind
|
||||
|
||||
```cpp
|
||||
void Bind() const
|
||||
```
|
||||
|
||||
绑定顶点数组对象到当前 OpenGL 上下文。
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
vao.Bind();
|
||||
glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, 0);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [OpenGLVertexArray](vertex-array.md) - 返回类总览
|
||||
Reference in New Issue
Block a user