fix: improve doc link navigation and tree display

- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
This commit is contained in:
2026-03-19 12:44:08 +08:00
parent e003fe6513
commit 58a83f445a
1012 changed files with 56880 additions and 22 deletions

View File

@@ -0,0 +1,22 @@
# OpenGLSampler::Bind
```cpp
void Bind(unsigned int unit);
```
绑定采样器到纹理单元。
**参数:**
- `unit` - 纹理单元编号
**复杂度:** O(1)
**示例:**
```cpp
sampler.Bind(0);
```
## 相关文档
- [OpenGLSampler 总览](sampler.md) - 返回类总览

View File

@@ -0,0 +1,21 @@
# OpenGLSampler::GetID
```cpp
unsigned int GetID() const
unsigned int GetID() override
```
获取 OpenGL 采样器对象 ID。
**返回:** `unsigned int` - 采样器 ID
**示例:**
```cpp
unsigned int samplerID = sampler.GetID();
glBindSampler(0, samplerID);
```
## 相关文档
- [OpenGLSampler](sampler.md) - 返回类总览

View File

@@ -0,0 +1,29 @@
# OpenGLSampler::Initialize
```cpp
bool Initialize(const OpenGLSamplerDesc& desc);
```
初始化采样器。
**参数:**
- `desc` - 采样器描述符
**返回:** 成功返回 `true`,失败返回 `false`
**复杂度:** O(1)
**示例:**
```cpp
OpenGLSamplerDesc desc;
desc.minFilter = SamplerFilter::LinearMipmapLinear;
desc.magFilter = SamplerFilter::Linear;
desc.wrapS = SamplerWrapMode::Repeat;
desc.wrapT = SamplerWrapMode::Repeat;
sampler.Initialize(desc);
```
## 相关文档
- [OpenGLSampler 总览](sampler.md) - 返回类总览

View File

@@ -0,0 +1,21 @@
# OpenGLSampler
**命名空间**: `XCEngine::RHI`
**描述**: OpenGL 采样器实现,继承自 `RHISampler`
## 公共方法
| 方法 | 描述 |
|------|------|
| [`Initialize`](initialize.md) | 初始化采样器 |
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭采样器 |
| [`Bind`](bind.md) | 绑定采样器 |
| [`Unbind`](unbind.md) | 解绑采样器 |
| [`GetID`](get-id.md) | 获取采样器 ID |
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
## 相关文档
- [OpenGL 后端总览](../overview.md)
- [RHISampler](../../sampler/sampler.md) - 抽象采样器接口

View File

@@ -0,0 +1,22 @@
# OpenGLSampler::Unbind
```cpp
void Unbind(unsigned int unit);
```
解绑采样器。
**参数:**
- `unit` - 纹理单元编号
**复杂度:** O(1)
**示例:**
```cpp
sampler.Unbind(0);
```
## 相关文档
- [OpenGLSampler 总览](sampler.md) - 返回类总览