Files
XCEngine/docs/api/rhi/opengl/render-target-view/unbind.md
2026-03-20 02:35:45 +08:00

20 lines
377 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# OpenGLRenderTargetView::Unbind
```cpp
void Unbind();
```
解除当前渲染目标视图的绑定将默认帧缓冲区framebuffer 0设为当前渲染目标。
**示例:**
```cpp
rtv.Bind();
// 执行渲染...
rtv.Unbind(); // 解除绑定,恢复默认帧缓冲
```
## 相关文档
- [OpenGLRenderTargetView 总览](render-target-view.md) - 返回类总览