docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
# OpenGLTexture
|
|
|
|
|
|
|
|
|
|
**命名空间**: `XCEngine::RHI`
|
|
|
|
|
|
|
|
|
|
**描述**: OpenGL 纹理的实现,继承自 `RHITexture`。
|
|
|
|
|
|
2026-03-19 02:01:18 +08:00
|
|
|
## 公共方法
|
docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
|
2026-03-19 02:01:18 +08:00
|
|
|
| 方法 | 描述 |
|
docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
|------|------|
|
2026-03-20 02:35:45 +08:00
|
|
|
| [`OpenGLTexture`](constructors.md) | 构造函数 |
|
|
|
|
|
| [`~OpenGLTexture`](constructors.md#destructor) | 析构函数 |
|
|
|
|
|
| [`Initialize`](initialize.md) | 初始化通用纹理 |
|
2026-03-19 02:01:18 +08:00
|
|
|
| [`Initialize2D`](initialize-2d.md) | 初始化 2D 纹理 |
|
|
|
|
|
| [`InitializeCubeMap`](initialize-cube-map.md) | 初始化立方体贴图 |
|
|
|
|
|
| [`LoadFromFile`](load-from-file.md) | 从文件加载纹理 |
|
2026-03-20 02:35:45 +08:00
|
|
|
| [`Shutdown`](../../texture/shutdown.md) | 关闭纹理 |
|
|
|
|
|
| [`Bind`](bind.md) | 绑定纹理 |
|
|
|
|
|
| [`Unbind`](unbind.md) | 解绑纹理 |
|
2026-03-19 02:01:18 +08:00
|
|
|
| [`BindImage`](bind-image.md) | 绑定图像 |
|
|
|
|
|
| [`GenerateMipmap`](generate-mipmap.md) | 生成多级渐远纹理 |
|
|
|
|
|
| [`SetFiltering`](set-filtering.md) | 设置过滤模式 |
|
|
|
|
|
| [`SetWrapping`](set-wrapping.md) | 设置环绕模式 |
|
|
|
|
|
| [`GetID`](get-id.md) | 获取 OpenGL 纹理 ID |
|
|
|
|
|
| [`GetOpenGLType`](get-opengl-type.md) | 获取 OpenGL 纹理类型 |
|
|
|
|
|
| [`GetWidth`](../../texture/get-width.md) | 获取纹理宽度 |
|
|
|
|
|
| [`GetHeight`](../../texture/get-height.md) | 获取纹理高度 |
|
|
|
|
|
| [`GetDepth`](../../texture/get-depth.md) | 获取纹理深度 |
|
|
|
|
|
| [`GetMipLevels`](../../texture/get-mip-levels.md) | 获取 Mip 级别 |
|
|
|
|
|
| [`GetTextureType`](../../texture/get-texture-type.md) | 获取纹理类型 |
|
2026-03-20 02:35:45 +08:00
|
|
|
| [`GetNativeHandle`](../../texture/get-native-handle.md) | 获取原生句柄 |
|
|
|
|
|
| [`GetState`](../../texture/get-state.md) | 获取资源状态 |
|
|
|
|
|
| [`SetState`](../../texture/set-state.md) | 设置资源状态 |
|
|
|
|
|
| [`GetName`](../../texture/get-name.md) | 获取资源名称 |
|
|
|
|
|
| [`SetName`](../../texture/set-name.md) | 设置资源名称 |
|
2026-03-19 02:01:18 +08:00
|
|
|
| [`GetFormat`](../../texture/get-format.md) | 获取纹理格式 |
|
2026-03-20 02:35:45 +08:00
|
|
|
| [`SetFormat`](set-format.md) | 设置纹理格式 |
|
docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
|
|
|
|
|
## 相关文档
|
|
|
|
|
|
2026-03-26 01:29:00 +08:00
|
|
|
- [OpenGL 后端总览](../opengl.md)
|
docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
- [RHITexture](../../texture/texture.md) - 抽象纹理接口
|