Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dscenerootnode.cpp
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5
7
8#include <QtQuick3DRuntimeRender/private/qssgrendernode_p.h>
9
10
11QT_BEGIN_NAMESPACE
12
13QQuick3DSceneRootNode::QQuick3DSceneRootNode(QQuick3DViewport *view3D, QQuick3DNode *parent)
14 : QQuick3DNode(parent)
15 , m_view3D(view3D)
16{
17}
18
19QQuick3DSceneRootNode::~QQuick3DSceneRootNode()
20{
21}
22
23
24QQuick3DViewport *QQuick3DSceneRootNode::view3D()
25{
26 return m_view3D;
27}
28
29QSSGRenderGraphObject *QQuick3DSceneRootNode::updateSpatialNode(QSSGRenderGraphObject *node)
30{
31 if (!node) {
32 markAllDirty();
33 node = new QSSGRenderNode(QSSGRenderGraphObject::Type::SceneRoot);
34 }
35
36 return QQuick3DNode::updateSpatialNode(node);
37}
38
39QT_END_NAMESPACE