// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). // Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies). // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QT3DRENDER_QDEPTHTEST_H #define QT3DRENDER_QDEPTHTEST_H #include QT_BEGIN_NAMESPACE namespace Qt3DRender { class QDepthTestPrivate; class Q_3DRENDERSHARED_EXPORT QDepthTest : public QRenderState { Q_OBJECT Q_PROPERTY(DepthFunction depthFunction READ depthFunction WRITE setDepthFunction NOTIFY depthFunctionChanged) public: enum DepthFunction { Never = 0x0200, Always = 0x0207, Less = 0x0201, LessOrEqual = 0x0203, Equal = 0x0202, GreaterOrEqual = 0x0206, Greater = 0x0204, NotEqual = 0x0205 }; Q_ENUM(DepthFunction) // LCOV_EXCL_LINE explicit QDepthTest(Qt3DCore::QNode *parent = nullptr); ~QDepthTest(); DepthFunction depthFunction() const; public Q_SLOTS: void setDepthFunction(DepthFunction depthFunction); Q_SIGNALS: void depthFunctionChanged(DepthFunction depthFunction); private: Q_DECLARE_PRIVATE(QDepthTest) }; } // namespace Qt3DRender QT_END_NAMESPACE #endif // QT3DRENDER_QDEPTHTEST_H