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
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13
14class QFrontFacePrivate;
15
16class Q_3DRENDERSHARED_EXPORT QFrontFace : public QRenderState
17{
18 Q_OBJECT
19 Q_PROPERTY(WindingDirection direction READ direction WRITE setDirection NOTIFY directionChanged)
20public:
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
34public Q_SLOTS:
35 void setDirection(WindingDirection direction);
36
37Q_SIGNALS:
38 void directionChanged(WindingDirection direction);
39
40private:
41 Q_DECLARE_PRIVATE(QFrontFace)
42};
43
44} // namespace Qt3DRender
45
46QT_END_NAMESPACE
47
48#endif // QT3DRENDER_QFRONTFACE_H
49

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