diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2014-10-25 15:47:20 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-10-26 10:17:26 +0100 |
commit | c9f8f87403b767405fc640b4776b7e67739a69db (patch) | |
tree | cdae36dfabbbe7783d59d76f64ce15fa9907b65d /src/render/backend/qrenderaspect.h | |
parent | 0e7ac3d230879986d9353c13eed4b45038f3eee4 (diff) |
Rename RendererAspect -> QRenderAspect
Change-Id: Ib16fe125e160764571775f3667cff082db921f7d
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/backend/qrenderaspect.h')
-rw-r--r-- | src/render/backend/qrenderaspect.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/src/render/backend/qrenderaspect.h b/src/render/backend/qrenderaspect.h new file mode 100644 index 000000000..841ce444e --- /dev/null +++ b/src/render/backend/qrenderaspect.h @@ -0,0 +1,85 @@ +/**************************************************************************** +** +** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the Qt3D module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QT3D_QRENDERASPECT_H +#define QT3D_QRENDERASPECT_H + +#include <Qt3DRenderer/qt3drenderer_global.h> +#include <Qt3DCore/qabstractaspect.h> + +QT_BEGIN_NAMESPACE + +class QWindow; + +namespace Qt3D { + +namespace Render { +class Renderer; +class RenderSceneObserver; +} + +class QT3DRENDERERSHARED_EXPORT QRenderAspect : public QAbstractAspect +{ + Q_OBJECT +public: + explicit QRenderAspect(QObject *parent = 0); + + QVector<QAspectJobPtr> jobsToExecute() Q_DECL_OVERRIDE; + + void sceneNodeAdded(QSceneChangePtr &e) Q_DECL_OVERRIDE; + void sceneNodeRemoved(QSceneChangePtr &e) Q_DECL_OVERRIDE; + +private: + void setRootEntity(QEntity *rootObject) Q_DECL_OVERRIDE; + void onInitialize(QSurface *surface) Q_DECL_OVERRIDE; + void onCleanup() Q_DECL_OVERRIDE; + + void visitNode(QNode *node); + + Render::Renderer *m_renderer; + friend class Render::Renderer; +}; + +} + +QT_END_NAMESPACE + +#endif // QT3D_QRENDERASPECT_H |