diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-04 17:08:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-04 17:08:36 +0300 |
commit | 141849d0370607b17103c2dbbb1973a14b8b7554 (patch) | |
tree | 5d310e0a9ad04b3ec2716b3dde5657e9b2bd6748 /src/graphicsmanager.cpp | |
parent | 96882a621d5a3720325d51fac87675f13043b4d9 (diff) | |
download | manaplus-141849d0370607b17103c2dbbb1973a14b8b7554.tar.gz manaplus-141849d0370607b17103c2dbbb1973a14b8b7554.tar.bz2 manaplus-141849d0370607b17103c2dbbb1973a14b8b7554.tar.xz manaplus-141849d0370607b17103c2dbbb1973a14b8b7554.zip |
Add VAO OpenGL functions.
for now unused.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 66e352c2b..324337871 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -885,6 +885,17 @@ void GraphicsManager::initOpenGLFunctions() assignFunction(glPopGroupMarker, "glPopGroupMarker"); } + if (checkGLVersion(3, 0) || supportExtension("GL_ARB_vertex_array_object")) + { + assignFunction(glGenVertexArrays, "glGenVertexArrays"); + assignFunction(glBindVertexArray, "glBindVertexArray"); + assignFunction(glDeleteVertexArrays, "glDeleteVertexArrays"); + assignFunction(glVertexAttribPointer, "glVertexAttribPointer"); + assignFunction(glEnableVertexAttribArray, "glEnableVertexAttribArray"); + assignFunction(glDisableVertexAttribArray, + "glDisableVertexAttribArray"); + } + #ifdef WIN32 assignFunction(wglGetExtensionsString, "wglGetExtensionsStringARB"); #endif |