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
6QT_BEGIN_NAMESPACE
7
8namespace Qt3DRender {
9namespace Render {
10
11GeometryRendererManager::GeometryRendererManager()
12{
13}
14
15GeometryRendererManager::~GeometryRendererManager()
16{
17}
18
19void GeometryRendererManager::addDirtyGeometryRenderer(Qt3DCore::QNodeId bufferId)
20{
21 if (!m_dirtyGeometryRenderers.contains(t: bufferId))
22 m_dirtyGeometryRenderers.push_back(t: bufferId);
23}
24
25QList<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
35QT_END_NAMESPACE
36

source code of qt3d/src/render/geometry/geometryrenderermanager.cpp