docs: update resources API docs
This commit is contained in:
27
docs/api/resources/textureimportsettings/setsrgb.md
Normal file
27
docs/api/resources/textureimportsettings/setsrgb.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# TextureImportSettings::SetSRGB / GetSRGB
|
||||
|
||||
```cpp
|
||||
void SetSRGB(bool srgb);
|
||||
bool GetSRGB() const;
|
||||
```
|
||||
|
||||
设置或获取 sRGB 颜色空间标记。
|
||||
|
||||
**参数:**
|
||||
- `srgb` - 是否使用 sRGB 颜色空间
|
||||
|
||||
**返回:** `bool` / `void`
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
TextureImportSettings settings;
|
||||
settings.SetSRGB(true);
|
||||
bool srgb = settings.GetSRGB(); // true
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [TextureImportSettings 总览](textureimportsettings.md) - 返回类总览
|
||||
Reference in New Issue
Block a user