docs: fix README.md project structure to match actual codebase
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)
This commit is contained in:
27
docs/api/resources/texture-import-settings/setmaxsize.md
Normal file
27
docs/api/resources/texture-import-settings/setmaxsize.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# TextureImportSettings::SetMaxSize / GetMaxSize
|
||||
|
||||
```cpp
|
||||
void SetMaxSize(Core::uint32 size);
|
||||
Core::uint32 GetMaxSize() const;
|
||||
```
|
||||
|
||||
设置或获取最大纹理尺寸。纹理将被缩放以适应此尺寸。
|
||||
|
||||
**参数:**
|
||||
- `size` - 最大边长(像素)
|
||||
|
||||
**返回:** `Core::uint32` / `void`
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
TextureImportSettings settings;
|
||||
settings.SetMaxSize(2048);
|
||||
Core::uint32 size = settings.GetMaxSize(); // 2048
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [TextureImportSettings 总览](textureimportsettings.md) - 返回类总览
|
||||
Reference in New Issue
Block a user