QAlphaTest Class
class Qt3DRender::QAlphaTestQAlphaTestクラスはアルファ参照テストを指定します。詳細...
ヘッダー | #include <QAlphaTest> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake | QT += 3drender |
QML で | AlphaTest |
を継承しています: | Qt3DRender::QRenderState |
ステータス | 非推奨 |
パブリックな型
enum | AlphaFunction { Never, Always, Less, LessOrEqual, Equal, …, NotEqual } |
プロパティ
- alphaFunction : AlphaFunction
- referenceValue : float
パブリック機能
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::Never | 0x0200 | アルファテストに合格しない |
Qt3DRender::QAlphaTest::Always | 0x0207 | 常にアルファテストに合格 |
Qt3DRender::QAlphaTest::Less | 0x0201 | フラグメントのアルファ値が基準値以下の場合、アルファテストに合格 |
Qt3DRender::QAlphaTest::LessOrEqual | 0x0203 | フラグメントのアルファ値が基準値以下の場合、アルファテストに合格 |
Qt3DRender::QAlphaTest::Equal | 0x0202 | フラグメントαが参照値と等しい場合、αテストに合格する |
Qt3DRender::QAlphaTest::GreaterOrEqual | 0x0206 | フラグメントαが参照値以上の場合、αテスト合格 |
Qt3DRender::QAlphaTest::Greater | 0x0204 | 断片アルファ値が基準値より大きい場合、アルファ値テストに合格 |
Qt3DRender::QAlphaTest::NotEqual | 0x0205 | フラグメントαが参照値と等しくない場合、αテスト合格 |
プロパティ文書
alphaFunction : AlphaFunction
アルファ・テストで使用するアルファ関数を保持する。デフォルトはNever。
アクセス関数:
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.