docs: update RHI API docs
This commit is contained in:
24
docs/api/rhi/opengl/swap-chain/constructor.md
Normal file
24
docs/api/rhi/opengl/swap-chain/constructor.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# OpenGLSwapChain::OpenGLSwapChain
|
||||
|
||||
```cpp
|
||||
OpenGLSwapChain();
|
||||
```
|
||||
|
||||
构造空的 OpenGL 交换链对象。
|
||||
|
||||
**注意:**
|
||||
- 构造函数不初始化交换链,需调用 `Initialize` 方法完成初始化
|
||||
- 初始化参数由 `Initialize` 方法指定
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
OpenGLSwapChain swapChain;
|
||||
swapChain.Initialize(window, true);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [OpenGLSwapChain 总览](swap-chain.md) - 返回类总览
|
||||
- [Initialize](initialize.md) - 初始化方法
|
||||
- [析构函数](destructor.md) - 析构函数
|
||||
Reference in New Issue
Block a user