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)
28 lines
537 B
Markdown
28 lines
537 B
Markdown
# TextureImportSettings::SetFlipHorizontal / GetFlipHorizontal
|
|
|
|
```cpp
|
|
void SetFlipHorizontal(bool flip);
|
|
bool GetFlipHorizontal() const;
|
|
```
|
|
|
|
设置或获取是否在导入时水平翻转纹理。
|
|
|
|
**参数:**
|
|
- `flip` - 是否水平翻转
|
|
|
|
**返回:** `bool` / `void`
|
|
|
|
**线程安全:** ✅
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
TextureImportSettings settings;
|
|
settings.SetFlipHorizontal(true);
|
|
bool flip = settings.GetFlipHorizontal(); // true
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [TextureImportSettings 总览](textureimportsettings.md) - 返回类总览
|