blob: c478dcae102ffc1c664d1a130c8523f4bb2ee070 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// 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_QCULLFACE_H
#define QT3DRENDER_QCULLFACE_H
#include <Qt3DRender/qrenderstate.h>
QT_BEGIN_NAMESPACE
namespace Qt3DRender {
class QCullFacePrivate;
class Q_3DRENDERSHARED_EXPORT QCullFace : public QRenderState
{
Q_OBJECT
Q_PROPERTY(CullingMode mode READ mode WRITE setMode NOTIFY modeChanged)
public:
enum CullingMode
{
NoCulling = 0x0,
Front = 0x0404,
Back = 0x0405,
FrontAndBack = 0x0408
};
Q_ENUM(CullingMode) // LCOV_EXCL_LINE
explicit QCullFace(Qt3DCore::QNode *parent = nullptr);
~QCullFace();
CullingMode mode() const;
public Q_SLOTS:
void setMode(CullingMode mode);
Q_SIGNALS:
void modeChanged(CullingMode mode);
private:
Q_DECLARE_PRIVATE(QCullFace)
};
} // namespace Qt3DRender
QT_END_NAMESPACE
#endif // QT3DRENDER_QCULLFACE_H
|