aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/quick3dmaterialnodeinstance.h
blob: 8a3fd9723762163f93e752083a77ee11f65b69af (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
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QtGlobal>

#include "quick3drenderablenodeinstance.h"

QT_FORWARD_DECLARE_CLASS(QQuick3DMaterial)

namespace QmlDesigner {
namespace Internal {

class Quick3DMaterialNodeInstance : public Quick3DRenderableNodeInstance
{
public:
    using Pointer = QSharedPointer<Quick3DMaterialNodeInstance>;

    ~Quick3DMaterialNodeInstance() override;
    static Pointer create(QObject *objectToBeWrapped);
    void initialize(const ObjectNodeInstance::Pointer &objectNodeInstance,
                    InstanceContainer::NodeFlags flags) override;

protected:
    explicit Quick3DMaterialNodeInstance(QObject *node);
};

} // namespace Internal
} // namespace QmlDesigner