QAlphaTest Class

class Qt3DRender::QAlphaTest

QAlphaTest 클래스는 알파 참조 테스트를 지정합니다. 더 보기...

헤더: #include <QAlphaTest>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: AlphaTest
상속합니다: Qt3DRender::QRenderState
상태: Deprecated

공용 유형

enum AlphaFunction { Never, Always, Less, LessOrEqual, Equal, …, NotEqual }

속성

공용 기능

Qt3DRender::QAlphaTest::AlphaFunction alphaFunction() const
float referenceValue() const

공용 슬롯

void setAlphaFunction(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction)
void setReferenceValue(float referenceValue)

신호

void alphaFunctionChanged(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction)
void referenceValueChanged(float referenceValue)

상세 설명

알파 테스트는 들어오는 조각의 알파 값과 상수 참조 값의 비교 결과에 따라 조건부로 조각을 버립니다.

멤버 유형 문서

enum QAlphaTest::AlphaFunction

알파 함수 값에 대한 열거형

상수설명
Qt3DRender::QAlphaTest::Never0x0200알파 테스트 불합격
Qt3DRender::QAlphaTest::Always0x0207항상 알파 테스트 통과
Qt3DRender::QAlphaTest::Less0x0201조각 알파가 기준값보다 작으면 알파 테스트 통과
Qt3DRender::QAlphaTest::LessOrEqual0x0203조각 알파가 기준값보다 작거나 같으면 알파 테스트 통과
Qt3DRender::QAlphaTest::Equal0x0202조각 알파가 기준값과 같으면 알파 테스트 통과
Qt3DRender::QAlphaTest::GreaterOrEqual0x0206조각 알파가 기준값보다 크거나 같으면 알파 테스트 통과
Qt3DRender::QAlphaTest::Greater0x0204조각 알파가 기준값보다 크면 알파 테스트 통과
Qt3DRender::QAlphaTest::NotEqual0x0205조각 알파가 기준값과 같지 않으면 알파 테스트 통과

프로퍼티 문서

alphaFunction : AlphaFunction

알파 테스트에 사용되는 알파 함수를 보유합니다. 기본값은 안 함수입니다.

함수에 액세스합니다:

Qt3DRender::QAlphaTest::AlphaFunction alphaFunction() const
void setAlphaFunction(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction)

알림 신호:

void alphaFunctionChanged(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction)

referenceValue : float

알파 테스트에 사용되는 기준값을 보유합니다. 기본값은 0.0입니다. 설정하면 값이 0에서 1 사이로 고정됩니다.

기능에 액세스합니다:

float referenceValue() const
void setReferenceValue(float referenceValue)

알림 신호:

void referenceValueChanged(float referenceValue)

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