docs: update resources API docs
This commit is contained in:
23
docs/api/resources/resource-loader/getsupportedextensions.md
Normal file
23
docs/api/resources/resource-loader/getsupportedextensions.md
Normal 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) - 返回类总览
|
||||
Reference in New Issue
Block a user