Engine modules: - Audio: remove AudioSource/Listener components (they belong in Components/), add IAudioEffect.h - Components: add AudioSourceComponent.h and AudioListenerComponent.h - Math: remove non-existent OBB.h - Resources: fix DependencyGraph.h -> ResourceDependencyGraph.h - Threading: add TaskSystemConfig.h - RHI: remove incorrect RHIDescriptor.h (already covered by RHIDescriptorPool.h) Backend fixes: - OpenGL: add OpenGLScreenshot.h - D3D12: fix file order (D3D12Enum.h before D3D12Types.h)
477 B
477 B
TextureImportSettings::SetSRGB / GetSRGB
void SetSRGB(bool srgb);
bool GetSRGB() const;
设置或获取 sRGB 颜色空间标记。
参数:
srgb- 是否使用 sRGB 颜色空间
返回: bool / void
线程安全: ✅
示例:
TextureImportSettings settings;
settings.SetSRGB(true);
bool srgb = settings.GetSRGB(); // true
相关文档
- TextureImportSettings 总览 - 返回类总览