summaryrefslogtreecommitdiffstats
path: root/tests/manual/deferred-renderer-cpp/sceneentity.h
blob: fea3123ab51f77903d8f3d2384f209ec1ef7ba08 (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
// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef SCENEENTITY_H
#define SCENEENTITY_H

#include <Qt3DCore/QEntity>

QT_BEGIN_NAMESPACE

namespace Qt3DRender {
class QLayer;
class QCamera;
}
class SceneEffect;

class SceneEntity : public Qt3DCore::QEntity
{
    Q_OBJECT
public:
    explicit SceneEntity(Qt3DCore::QNode *parent = nullptr);

    Qt3DRender::QLayer *layer() const;
    SceneEffect *effect() const;
private:
    Qt3DRender::QLayer *m_layer;
    SceneEffect *m_effect;
};

QT_END_NAMESPACE

#endif // SCENEENTITY_H