1// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
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_TECHNIQUEMANAGER_H
5#define QT3DRENDER_RENDER_TECHNIQUEMANAGER_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/technique_p.h>
20
21QT_BEGIN_NAMESPACE
22
23namespace Qt3DRender {
24
25namespace Render {
26
27class Q_3DRENDERSHARED_PRIVATE_EXPORT TechniqueManager : public Qt3DCore::QResourceManager<
28 Technique,
29 Qt3DCore::QNodeId,
30 Qt3DCore::NonLockingPolicy>
31{
32public:
33 TechniqueManager();
34
35 void addDirtyTechnique(Qt3DCore::QNodeId techniqueId);
36 std::vector<Qt3DCore::QNodeId> takeDirtyTechniques();
37
38private:
39 std::vector<Qt3DCore::QNodeId> m_dirtyTechniques;
40};
41
42} // Render
43} // Qt3DRender
44
45Q_DECLARE_RESOURCE_INFO(Qt3DRender::Render::Technique, Q_REQUIRES_CLEANUP)
46
47QT_END_NAMESPACE
48
49#endif // QT3DRENDER_RENDER_TECHNIQUEMANAGER_H
50

source code of qt3d/src/render/materialsystem/techniquemanager_p.h