summaryrefslogtreecommitdiffstats
path: root/src/render/io/uniformbuffer_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-12-08 11:56:35 +0100
committerPaul Lemire <paul.lemire@kdab.com>2016-01-13 14:02:41 +0000
commit45e8d67176b37c56c0403590a5f721e980101148 (patch)
tree065629a913b2b78ac808af51dc5ddefda0ce594e /src/render/io/uniformbuffer_p.h
parent5c89a2c7e43f930758b207acb0e89cd7477c4f60 (diff)
Rename UniformBuffer to GLBuffer
This class could be reused for any kind of GLBuffer (not just uniform buffer) so rename it accordingly. Change-Id: I978696534f64fc3717ac135af94e9fe44aa23fba Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/io/uniformbuffer_p.h')
-rw-r--r--src/render/io/uniformbuffer_p.h93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/render/io/uniformbuffer_p.h b/src/render/io/uniformbuffer_p.h
deleted file mode 100644
index e60d30054..000000000
--- a/src/render/io/uniformbuffer_p.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QT3DRENDER_RENDER_UNIFORMBUFFER_P_H
-#define QT3DRENDER_RENDER_UNIFORMBUFFER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists for the convenience
-// of other Qt classes. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QOpenGLContext>
-#include <Qt3DCore/qnodeid.h>
-
-QT_BEGIN_NAMESPACE
-
-namespace Qt3DRender {
-
-namespace Render {
-
-class GraphicsContext;
-
-typedef QPair<Qt3DCore::QNodeId, Qt3DCore::QNodeId> ShaderDataShaderUboKey;
-
-class UniformBuffer
-{
-public:
- UniformBuffer();
-
- void bind(GraphicsContext *ctx);
- void release(GraphicsContext *ctx);
- void create(GraphicsContext *ctx);
- void destroy(GraphicsContext *ctx);
- void allocate(GraphicsContext *ctx, uint size, bool dynamic = true);
- void update(GraphicsContext *ctx, const void *data, uint size, int offset = 0);
- void bindToUniformBlock(GraphicsContext *ctx, int bindingPoint);
-
- inline GLuint bufferId() const { return m_bufferId; }
- inline bool isCreated() const { return m_isCreated; }
- inline bool isBound() const { return m_bound; }
-
-private:
- GLuint m_bufferId;
- bool m_isCreated;
- bool m_bound;
-};
-
-} // namespace Render
-
-} // namespace Qt3DRender
-
-QT_END_NAMESPACE
-
-#endif // QT3DRENDER_RENDER_UNIFORMBUFFER_P_H