1 | // Copyright (C) 2015 Paul Lemire |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #include "geometryrenderermanager_p.h" |
5 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | namespace Qt3DRender { |
9 | namespace Render { |
10 | |
11 | GeometryRendererManager::GeometryRendererManager() |
12 | { |
13 | } |
14 | |
15 | GeometryRendererManager::~GeometryRendererManager() |
16 | { |
17 | } |
18 | |
19 | void GeometryRendererManager::addDirtyGeometryRenderer(Qt3DCore::QNodeId bufferId) |
20 | { |
21 | if (!m_dirtyGeometryRenderers.contains(t: bufferId)) |
22 | m_dirtyGeometryRenderers.push_back(t: bufferId); |
23 | } |
24 | |
25 | QList<Qt3DCore::QNodeId> GeometryRendererManager::dirtyGeometryRenderers() |
26 | { |
27 | QList<Qt3DCore::QNodeId> vector(m_dirtyGeometryRenderers); |
28 | m_dirtyGeometryRenderers.clear(); |
29 | return vector; |
30 | } |
31 | |
32 | } // namespace Render |
33 | } // namespace Qt3DRender |
34 | |
35 | QT_END_NAMESPACE |
36 |