1// Copyright (C) 2017 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#include "glresourcemanagers_p.h"
5
6QT_BEGIN_NAMESPACE
7
8namespace Qt3DRender {
9
10namespace Render {
11
12namespace OpenGL {
13
14GLResourceManagers::GLResourceManagers()
15 : m_glBufferManager(new GLBufferManager())
16 , m_glShaderManager(new GLShaderManager())
17 , m_glTextureManager(new GLTextureManager())
18 , m_glFenceManager(new GLFenceManager())
19 , m_vaoManager(new VAOManager())
20{
21}
22
23GLResourceManagers::~GLResourceManagers()
24{
25 delete m_vaoManager;
26 delete m_glFenceManager;
27 delete m_glTextureManager;
28 delete m_glShaderManager;
29 delete m_glBufferManager;
30}
31
32} // OpenGL
33
34} // Render
35
36} // Qt3DRender
37
38QT_END_NAMESPACE
39

source code of qt3d/src/plugins/renderers/opengl/managers/glresourcemanagers.cpp