docs: update resources API docs

This commit is contained in:
2026-03-20 02:35:35 +08:00
parent fd792b7df1
commit ea756c0177
314 changed files with 9439 additions and 1360 deletions

View File

@@ -0,0 +1,23 @@
# IResourceLoader::GetSupportedExtensions
```cpp
virtual Containers::Array<Containers::String> GetSupportedExtensions() const = 0
```
纯虚方法,返回此加载器支持的文件扩展名列表。例如纹理加载器可能返回 `{".png", ".jpg", ".jpeg", ".bmp", ".tga"}`
**返回:** `Containers::Array<Containers::String>` 支持的扩展名列表(包含点号)
**线程安全:**
**示例:**
```cpp
Containers::Array<Containers::String> TextureLoader::GetSupportedExtensions() const {
return {".png", ".jpg", ".jpeg", ".bmp", ".tga"};
}
```
## 相关文档
- [IResourceLoader 总览](resource-loader.md) - 返回类总览