docs: update RHI API docs
This commit is contained in:
28
docs/api/rhi/opengl/texture/constructors.md
Normal file
28
docs/api/rhi/opengl/texture/constructors.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# OpenGLTexture 构造与析构
|
||||
|
||||
## 构造函数
|
||||
|
||||
```cpp
|
||||
OpenGLTexture()
|
||||
```
|
||||
|
||||
创建 OpenGLTexture 对象,初始化内部状态。
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
OpenGLTexture texture;
|
||||
```
|
||||
|
||||
## 析构函数
|
||||
|
||||
```cpp
|
||||
~OpenGLTexture() override
|
||||
```
|
||||
|
||||
销毁 OpenGLTexture 对象,自动调用 `Shutdown()` 释放资源。
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [OpenGLTexture](texture.md) - 返回类总览
|
||||
- [Shutdown](../../../threading/task-system/shutdown.md) - 关闭纹理
|
||||
Reference in New Issue
Block a user