1 | // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
2 | // Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies). |
3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
4 | |
5 | #ifndef QT3DRENDER_QFRONTFACE_H |
6 | #define QT3DRENDER_QFRONTFACE_H |
7 | |
8 | #include <Qt3DRender/qrenderstate.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DRender { |
13 | |
14 | class QFrontFacePrivate; |
15 | |
16 | class Q_3DRENDERSHARED_EXPORT QFrontFace : public QRenderState |
17 | { |
18 | Q_OBJECT |
19 | Q_PROPERTY(WindingDirection direction READ direction WRITE setDirection NOTIFY directionChanged) |
20 | public: |
21 | |
22 | enum WindingDirection |
23 | { |
24 | ClockWise = 0x0900, |
25 | CounterClockWise = 0x0901 |
26 | }; |
27 | Q_ENUM(WindingDirection) // LCOV_EXCL_LINE |
28 | |
29 | explicit QFrontFace(Qt3DCore::QNode *parent = nullptr); |
30 | ~QFrontFace(); |
31 | |
32 | WindingDirection direction() const; |
33 | |
34 | public Q_SLOTS: |
35 | void setDirection(WindingDirection direction); |
36 | |
37 | Q_SIGNALS: |
38 | void directionChanged(WindingDirection direction); |
39 | |
40 | private: |
41 | Q_DECLARE_PRIVATE(QFrontFace) |
42 | }; |
43 | |
44 | } // namespace Qt3DRender |
45 | |
46 | QT_END_NAMESPACE |
47 | |
48 | #endif // QT3DRENDER_QFRONTFACE_H |
49 | |