summaryrefslogtreecommitdiffstats
path: root/src/render/backend/qgraphicscontext_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-08-04 12:40:59 +0200
committerPaul Lemire <paul.lemire@kdab.com>2015-08-07 14:31:54 +0000
commit975624820bbb086f0d7957236128ddb043e792d0 (patch)
tree542c17edee5cb5238704e7aa6c083f15045a6149 /src/render/backend/qgraphicscontext_p.h
parent4bbe0ad81a06fb42f3aab592e5645e546bfb90db (diff)
QAbstractAttribute: Type abstracted with an enum
Also added a dataSize property to know the number of components per vertice (1 - 4) Change-Id: Iaa7cee2a53958ed2ec2f603f3ffc7971c027991d Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/backend/qgraphicscontext_p.h')
-rw-r--r--src/render/backend/qgraphicscontext_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/backend/qgraphicscontext_p.h b/src/render/backend/qgraphicscontext_p.h
index bd516e145..f53d2c650 100644
--- a/src/render/backend/qgraphicscontext_p.h
+++ b/src/render/backend/qgraphicscontext_p.h
@@ -49,6 +49,7 @@
#include <Qt3DRenderer/private/quniformvalue_p.h>
#include <Qt3DRenderer/qclearbuffer.h>
#include <Qt3DRenderer/private/rendershader_p.h>
+#include <Qt3DRenderer/qattribute.h>
QT_BEGIN_NAMESPACE
@@ -185,6 +186,8 @@ public:
static GLint elementType(GLint type);
static GLint tupleSizeFromType(GLint type);
static GLuint byteSizeFromType(GLint type);
+ static GLint glDataTypeFromAttributeDataType(QAttribute::DataType dataType);
+
bool supportsVAO() const { return m_supportsVAO; }