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:
24
docs/api/resources/texture/generatemipmaps.md
Normal file
24
docs/api/resources/texture/generatemipmaps.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Texture::GenerateMipmaps
|
||||
|
||||
```cpp
|
||||
bool GenerateMipmaps()
|
||||
```
|
||||
|
||||
生成纹理的 Mipmap 链。根据基础级别纹理自动生成所有下采样级别,用于纹理在缩小渲染时避免闪烁。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** 生成成功返回 true
|
||||
|
||||
**复杂度:** O(n)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
tex.Create(1024, 1024, 1, 1, TextureType::Texture2D, TextureFormat::RGBA8_UNORM, data, size);
|
||||
tex.GenerateMipmaps();
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Texture 总览](texture.md) - 返回类总览
|
||||
Reference in New Issue
Block a user