[core] move OpenGL extension loading to their own headers
This commit is contained in:
committed by
John Firebaugh
parent
cc78b74098
commit
2ec2860ce5
22
src/mbgl/gl/vertex_array.cpp
Normal file
22
src/mbgl/gl/vertex_array.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <mbgl/gl/vertex_array.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace gl {
|
||||
|
||||
ExtensionFunction<void(GLuint array)>
|
||||
BindVertexArray({ { "GL_ARB_vertex_array_object", "glBindVertexArray" },
|
||||
{ "GL_OES_vertex_array_object", "glBindVertexArrayOES" },
|
||||
{ "GL_APPLE_vertex_array_object", "glBindVertexArrayAPPLE" } });
|
||||
|
||||
ExtensionFunction<void(GLsizei n, const GLuint* arrays)>
|
||||
DeleteVertexArrays({ { "GL_ARB_vertex_array_object", "glDeleteVertexArrays" },
|
||||
{ "GL_OES_vertex_array_object", "glDeleteVertexArraysOES" },
|
||||
{ "GL_APPLE_vertex_array_object", "glDeleteVertexArraysAPPLE" } });
|
||||
|
||||
ExtensionFunction<void(GLsizei n, GLuint* arrays)>
|
||||
GenVertexArrays({ { "GL_ARB_vertex_array_object", "glGenVertexArrays" },
|
||||
{ "GL_OES_vertex_array_object", "glGenVertexArraysOES" },
|
||||
{ "GL_APPLE_vertex_array_object", "glGenVertexArraysAPPLE" } });
|
||||
|
||||
} // namespace gl
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user