TextureLoader QML Type
负责加载纹理并设置纹理的属性。更多...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QTextureLoader |
| Status: | Deprecated |
此类型已弃用。我们强烈建议在新代码中不要使用它。
属性
详细说明
物业文件
mirrored : bool
此属性用于指定加载纹理时是否应进行镜像处理。此功能旨在避免用户需要手动调整图像以匹配渲染 API 所使用的纹理坐标原点。默认情况下,此属性设置为 true。使用 GPU 压缩纹理格式时,此属性无效。
警告: 当加载未压缩或 CPU 压缩的图像格式(如 PNG)时,此 属性会导致运行时性能开销。为避免此性能开销,建议将此属性设置为 false,并加载已预先镜像的纹理资源。
注意:OpenGL 规定纹理坐标的原点位于左下角,而 DirectX 则使用左上角作为原点。
注意: 使用立方体贴图时, 建议禁用镜像功能,因为立方体贴图采样器采用的是方向,而非常规的纹理坐标。
source : url
该属性保存当前的纹理来源。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.