1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the QtDataVisualization API. It exists purely as an |
9 | // implementation detail. This header file may change from version to |
10 | // version without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | |
14 | #ifndef ABSTRACTOBJECTHELPER_H |
15 | #define ABSTRACTOBJECTHELPER_H |
16 | |
17 | #include "datavisualizationglobal_p.h" |
18 | |
19 | QT_BEGIN_NAMESPACE |
20 | |
21 | class AbstractObjectHelper: protected QOpenGLFunctions |
22 | { |
23 | protected: |
24 | AbstractObjectHelper(); |
25 | public: |
26 | virtual ~AbstractObjectHelper(); |
27 | |
28 | GLuint vertexBuf(); |
29 | GLuint normalBuf(); |
30 | virtual GLuint uvBuf(); |
31 | GLuint elementBuf(); |
32 | GLuint indexCount(); |
33 | |
34 | public: |
35 | GLuint m_vertexbuffer; |
36 | GLuint m_normalbuffer; |
37 | GLuint m_uvbuffer; |
38 | GLuint m_elementbuffer; |
39 | |
40 | GLuint m_indexCount; |
41 | GLboolean m_meshDataLoaded; |
42 | }; |
43 | |
44 | QT_END_NAMESPACE |
45 | |
46 | #endif |
47 | |