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

29 lines
449 B
Markdown

# OpenGLTexture 构造与析构
## 构造函数
```cpp
OpenGLTexture()
```
创建 OpenGLTexture 对象,初始化内部状态。
**示例:**
```cpp
OpenGLTexture texture;
```
## 析构函数
```cpp
~OpenGLTexture() override
```
销毁 OpenGLTexture 对象,自动调用 `Shutdown()` 释放资源。
## 相关文档
- [OpenGLTexture](texture.md) - 返回类总览
- [Shutdown](../../../threading/task-system/shutdown.md) - 关闭纹理