Qt3DRender::QAlphaTest Class
class Qt3DRender::QAlphaTestQAlphaTest クラスは、アルファ参照テストを指定します。詳細...
| ヘッダー: | #include <qalphatest.h> |
| 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) |
© 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.