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#ifndef QT3DRENDER_RENDER_GEOMETRYRENDERERMANAGER_H
5#define QT3DRENDER_RENDER_GEOMETRYRENDERERMANAGER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <Qt3DCore/private/qresourcemanager_p.h>
19#include <Qt3DRender/private/geometryrenderer_p.h>
20
21QT_BEGIN_NAMESPACE
22
23namespace Qt3DRender {
24
25namespace Render {
26
27class Q_3DRENDERSHARED_PRIVATE_EXPORT GeometryRendererManager : public Qt3DCore::QResourceManager<
28 GeometryRenderer,
29 Qt3DCore::QNodeId,
30 Qt3DCore::ObjectLevelLockingPolicy>
31{
32public:
33 GeometryRendererManager();
34 ~GeometryRendererManager();
35
36 // Aspect Thread
37 void addDirtyGeometryRenderer(Qt3DCore::QNodeId bufferId);
38 QList<Qt3DCore::QNodeId> dirtyGeometryRenderers();
39
40private:
41 QList<Qt3DCore::QNodeId> m_dirtyGeometryRenderers;
42 QList<Qt3DCore::QNodeId> m_geometryRenderersRequiringTriangleRefresh;
43};
44
45} // namespace Render
46} // namespace Qt3DRender
47
48Q_DECLARE_RESOURCE_INFO(Qt3DRender::Render::GeometryRenderer, Q_REQUIRES_CLEANUP)
49
50QT_END_NAMESPACE
51
52
53#endif // QT3DRENDER_RENDER_GEOMETRYRENDERERMANAGER_H
54

source code of qt3d/src/render/geometry/geometryrenderermanager_p.h