Files
XCEngine/docs/api/rhi/opengl/swap-chain/present.md
2026-03-20 02:35:45 +08:00

25 lines
470 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.
# OpenGLSwapChain::Present
```cpp
void Present(uint32_t syncInterval = 1, uint32_t flags = 0) override;
```
呈现渲染结果到屏幕。
**参数:**
- `syncInterval` - 垂直同步间隔0=立即1+=等待垂直同步)
- `flags` - 呈现标志
**线程安全:**
**示例:**
```cpp
swapChain->Present(1, 0);
```
## 相关文档
- [OpenGLSwapChain 总览](swap-chain.md) - 返回类总览
- [SwapBuffers](swap-buffers.md) - 直接交换缓冲区