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
6
#
include
"qquick3dscenerootnode_p.h"
7
8
#
include
<
QtQuick3DRuntimeRender
/
private
/
qssgrendernode_p
.
h
>
9
10
11
QT_BEGIN_NAMESPACE
12
13
QQuick3DSceneRootNode::QQuick3DSceneRootNode(QQuick3DViewport *view3D, QQuick3DNode *parent)
14
: QQuick3DNode(parent)
15
, m_view3D(view3D)
16
{
17
}
18
19
QQuick3DSceneRootNode::~QQuick3DSceneRootNode()
20
{
21
}
22
23
24
QQuick3DViewport *QQuick3DSceneRootNode::view3D()
25
{
26
return
m_view3D;
27
}
28
29
QSSGRenderGraphObject *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
39
QT_END_NAMESPACE
qtquick3d
src
quick3d
qquick3dscenerootnode.cpp
Generated on
for Qt by
1.16.1