1// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DRENDER_QSTENCILOPERATION_H
5#define QT3DRENDER_QSTENCILOPERATION_H
6
7#include <Qt3DRender/qrenderstate.h>
8#include <Qt3DRender/qstenciloperationarguments.h>
9
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13
14class QStencilOperationPrivate;
15
16class Q_3DRENDERSHARED_EXPORT QStencilOperation : public QRenderState
17{
18 Q_OBJECT
19 Q_PROPERTY(Qt3DRender::QStencilOperationArguments *front READ front CONSTANT)
20 Q_PROPERTY(Qt3DRender::QStencilOperationArguments *back READ back CONSTANT)
21
22public:
23 explicit QStencilOperation(Qt3DCore::QNode *parent = nullptr);
24 ~QStencilOperation();
25
26 QStencilOperationArguments *front() const;
27 QStencilOperationArguments *back() const;
28
29private:
30 Q_DECLARE_PRIVATE(QStencilOperation)
31};
32
33} // namespace Qt3DRender
34
35QT_END_NAMESPACE
36
37#endif // QT3DRENDER_QSTENCILOPERATION_H
38

source code of qt3d/src/render/renderstates/qstenciloperation.h