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 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | namespace Qt3DRender { |
9 | |
10 | namespace Render { |
11 | |
12 | namespace OpenGL { |
13 | |
14 | GLResourceManagers::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 | |
23 | GLResourceManagers::~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 | |
38 | QT_END_NAMESPACE |
39 |