이 페이지에서

Qt3DExtras::QTextureMaterial Class

class Qt3DExtras::QTextureMaterial

QTextureMaterial은 간단한 비조명 텍스처 머티리얼의 기본 구현을 제공합니다. 더 보기...

헤더: #include <qtexturematerial.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
상속: Qt3DRender::QMaterial
상태: 사용 중단됨

이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.

속성

공개 함수

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)

상세 설명

이 자료는 단일 렌더 패스 방식의 이펙트를 사용합니다. OpenGL 2, OpenGL 3 이상 및 OpenGL ES 2에 대한 기법이 제공됩니다.

속성 설명

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)

parent 를 부모 객체로 하는 새로운 QTextureMaterial 인스턴스를 생성합니다.

[virtual noexcept] QTextureMaterial::~QTextureMaterial()

QTextureMaterial 인스턴스를 삭제합니다.

© 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.