summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/vertex_array.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-09-28 17:21:20 +0200
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-09-29 13:19:27 -0700
commit2ec2860ce5de2bde751086db13de1c09e643c28c (patch)
treed9539718dde07e3ddeaf2b502032828157a25e27 /src/mbgl/gl/vertex_array.hpp
parentcc78b74098e02311cc646fe5b82c13641ff705fa (diff)
downloadqtlocation-mapboxgl-2ec2860ce5de2bde751086db13de1c09e643c28c.tar.gz
[core] move OpenGL extension loading to their own headers
Diffstat (limited to 'src/mbgl/gl/vertex_array.hpp')
-rw-r--r--src/mbgl/gl/vertex_array.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mbgl/gl/vertex_array.hpp b/src/mbgl/gl/vertex_array.hpp
new file mode 100644
index 0000000000..6215e56f21
--- /dev/null
+++ b/src/mbgl/gl/vertex_array.hpp
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <mbgl/gl/extension.hpp>
+#include <mbgl/gl/gl.hpp>
+
+namespace mbgl {
+namespace gl {
+
+extern ExtensionFunction<void(GLuint array)> BindVertexArray;
+extern ExtensionFunction<void(GLsizei n, const GLuint* arrays)> DeleteVertexArrays;
+extern ExtensionFunction<void(GLsizei n, GLuint* arrays)> GenVertexArrays;
+
+} // namespace gl
+} // namespace mbgl \ No newline at end of file