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_RENDER_QUICK_QUICK3DRENDERPASS_P_H
6#define QT3DRENDER_RENDER_QUICK_QUICK3DRENDERPASS_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of other Qt classes. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <Qt3DRender/qrenderpass.h>
20#include <QtQml/QQmlListProperty>
21
22#include <Qt3DQuickRender/private/qt3dquickrender_global_p.h>
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DRender {
27namespace Render {
28namespace Quick {
29
30class Q_3DQUICKRENDERSHARED_PRIVATE_EXPORT Quick3DRenderPass : public QObject
31{
32 Q_OBJECT
33 Q_PROPERTY(QQmlListProperty<Qt3DRender::QFilterKey> filterKeys READ filterKeyList)
34 Q_PROPERTY(QQmlListProperty<Qt3DRender::QRenderState> renderStates READ renderStateList)
35 Q_PROPERTY(QQmlListProperty<Qt3DRender::QParameter> parameters READ parameterList)
36public:
37 explicit Quick3DRenderPass(QObject *parent = 0);
38
39 QQmlListProperty<QFilterKey> filterKeyList();
40 QQmlListProperty<QRenderState> renderStateList();
41 QQmlListProperty<QParameter> parameterList();
42
43 inline QRenderPass *parentRenderPass() const { return qobject_cast<QRenderPass *>(object: parent()); }
44};
45
46} // namespace Quick
47} // namespace Render
48} // namespace Qt3DRender
49
50QT_END_NAMESPACE
51
52#endif // QT3DRENDER_RENDER_QUICK_QUICK3DRENDERPASS_P_H
53

source code of qt3d/src/quick3d/quick3drender/items/quick3drenderpass_p.h