Qt3DRender::QTextureLoader Class
class Qt3DRender::QTextureLoader텍스처 로딩 및 텍스처 속성 설정을 처리합니다. 더 보기...
| 헤더: | #include <Qt3DRender/QTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML에서: | TextureLoader |
| 상속: | Qt3DRender::QAbstractTexture |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
공개 함수
| QTextureLoader(Qt3DCore::QNode *parent = nullptr) | |
| bool | isMirrored() const |
| QUrl | source() const |
공개 슬롯
| void | setMirrored(bool mirrored) |
| void | setSource(const QUrl &source) |
신호
| void | mirroredChanged(bool mirrored) |
| void | sourceChanged(const QUrl &source) |
속성 문서
mirrored : bool
이 속성은 텍스처가 로드될 때 거울 반전 처리되어야 하는지 여부를 지정합니다. 이는 렌더링 API에서 사용하는 텍스처 좌표의 원점을 맞추기 위해 이미지를 수동으로 조작해야 하는 번거로움을 덜어주기 위한 편의 기능입니다. 기본적으로 이 속성은 true로 설정되어 있습니다. GPU 압축 텍스처 형식을 사용할 때는 이 속성이 적용되지 않습니다.
경고: 이 속성을 사용하면 PNG와 같은 비압축 또는 CPU 압축 이미지 형식을 로드할 때 런타임 성능 저하가 발생합니다. 이러한 성능 저하를 피하려면 이 속성을 false로 설정하고 미리 미러링된 텍스처 에셋을 로드하는 것이 좋습니다.
참고: OpenGL은 텍스처 좌표의 원점을 왼쪽 하단 모서리로 지정하는 반면, DirectX는 왼쪽 상단 모서리를 사용합니다.
참고: 큐브 맵 텍스처를 사용할때는 큐브 맵 샘플러가 일반 텍스처 좌표 대신 방향을 사용하므로 미러링을 비활성화하는 것이 좋습니다.
액세스 함수:
| bool | isMirrored() const |
| void | setMirrored(bool mirrored) |
알림 신호:
| void | mirroredChanged(bool mirrored) |
source : QUrl
이 속성은 현재 텍스처 소스를 저장합니다.
액세스 함수:
| QUrl | source() const |
| void | setSource(const QUrl &source) |
알림 신호:
| void | sourceChanged(const QUrl &source) |
멤버 함수 설명서
[explicit] QTextureLoader::QTextureLoader(Qt3DCore::QNode *parent = nullptr)
parent 를 부모로 하는 새로운 Qt3DRender::QTextureLoader 인스턴스를 생성합니다.
참고: 기본적으로, 파일 메타데이터와 상충되지 않는 한, 로드된 텍스처에는 다음 속성이 설정됩니다. - wrapMode는 Repeat로 설정됨 - minificationFilter는 LinearMipMapLinear로 설정됨 - magnificationFilter는 Linear로 설정됨 - generateMipMaps는 true로 설정됨 - maximumAnisotropy는 16.0f로 설정됨 - target은 TargetAutomatic로 설정됨
[slot] void QTextureLoader::setMirrored(bool mirrored)
미러링 설정을 mirrored 로 설정합니다.
참고: 이 작업은 내부적으로 데이터 생성기를 업데이트하는 호출을 트리거합니다.
참고: mirrored 속성에 대한세터 함수입니다.
isMirrored()도 참조하십시오 .
[slot] void QTextureLoader::setSource(const QUrl &source)
텍스처 로더의 소스를 source 로 설정합니다. source
참고: source 속성에 대한세터 함수입니다.
source()도 참조하십시오 .
© 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.