QTextureMaterial Class
class Qt3DExtras::QTextureMaterialQTextureMaterial은 간단한 무조명 텍스처 머티리얼의 기본 구현을 제공합니다. 더 보기...
Header: | #include <QTextureMaterial> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
상속합니다: | Qt3DRender::QMaterial |
상태: | Deprecated |
속성
- alphaBlending : bool
- texture : Qt3DRender::QAbstractTexture*
- textureOffset : QVector2D
- textureTransform : QMatrix3x3
공용 기능
QTextureMaterial(Qt3DCore::QNode *parent = nullptr) | |
virtual | ~QTextureMaterial() |
bool | isAlphaBlendingEnabled() const |
Qt3DRender::QAbstractTexture * | texture() const |
QVector2D | textureOffset() const |
QMatrix3x3 | textureTransform() const |
공용 슬롯
void | setAlphaBlendingEnabled(bool enabled) |
void | setTexture(Qt3DRender::QAbstractTexture *texture) |
void | setTextureOffset(QVector2D textureOffset) |
void | setTextureTransform(const QMatrix3x3 &matrix) |
신호
void | alphaBlendingEnabledChanged(bool enabled) |
void | textureChanged(Qt3DRender::QAbstractTexture *texture) |
void | textureOffsetChanged(QVector2D textureOffset) |
void | textureTransformChanged(const QMatrix3x3 &textureTransform) |
프로퍼티 문서
alphaBlending : bool
렌더링 시 디퓨즈 프로퍼티에서 나오는 알파 정보를 고려할지 여부를 나타냅니다. 기본값은 false입니다.
함수에 액세스합니다:
bool | isAlphaBlendingEnabled() const |
void | setAlphaBlendingEnabled(bool enabled) |
노티파이 신호:
void | alphaBlendingEnabledChanged(bool enabled) |
texture : Qt3DRender::QAbstractTexture*
머티리얼이 사용하는 현재 텍스처를 보유합니다.
함수에 액세스합니다:
Qt3DRender::QAbstractTexture * | texture() const |
void | setTexture(Qt3DRender::QAbstractTexture *texture) |
알림 신호:
void | textureChanged(Qt3DRender::QAbstractTexture *texture) |
textureOffset : QVector2D
유틸리티 프로퍼티입니다. 일반 텍스처 변환 매트릭스의 변환 컴포넌트를 설정합니다.
함수에 액세스합니다:
QVector2D | textureOffset() const |
void | setTextureOffset(QVector2D textureOffset) |
노티파이 신호:
void | textureOffsetChanged(QVector2D textureOffset) |
textureTransform : QMatrix3x3
현재 텍스처 트랜스폼을 보유합니다. 렌더링 시 텍스처 좌표에 적용됩니다. 기본값은 아이덴티티 매트릭스입니다.
함수에 액세스합니다:
QMatrix3x3 | textureTransform() const |
void | setTextureTransform(const QMatrix3x3 &matrix) |
알림 신호:
void | textureTransformChanged(const QMatrix3x3 &textureTransform) |
멤버 함수 문서
[explicit]
QTextureMaterial::QTextureMaterial(Qt3DCore::QNode *parent = nullptr)
부모 오브젝트가 있는 새 QTextureMaterial 인스턴스를 parent 로 구성합니다.
[virtual noexcept]
QTextureMaterial::~QTextureMaterial()
QTextureMaterial 인스턴스를 삭제합니다.
© 2025 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.