]> git.tdb.fi Git - libs/gl.git/blob - source/arb_vertex_buffer_object.cpp
Adapt exporter to Blender 2.63
[libs/gl.git] / source / arb_vertex_buffer_object.cpp
1 #include "extension.h"
2 #include "arb_vertex_buffer_object.h"
3
4 namespace Msp {
5 namespace GL {
6
7 PFNGLBINDBUFFERARBPROC glBindBufferARB = 0;
8 PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB = 0;
9 PFNGLGENBUFFERSARBPROC glGenBuffersARB = 0;
10 PFNGLISBUFFERARBPROC glIsBufferARB = 0;
11 PFNGLBUFFERDATAARBPROC glBufferDataARB = 0;
12 PFNGLBUFFERSUBDATAARBPROC glBufferSubDataARB = 0;
13 PFNGLGETBUFFERSUBDATAARBPROC glGetBufferSubDataARB = 0;
14 PFNGLMAPBUFFERARBPROC glMapBufferARB = 0;
15 PFNGLUNMAPBUFFERARBPROC glUnmapBufferARB = 0;
16 PFNGLGETBUFFERPARAMETERIVARBPROC glGetBufferParameterivARB = 0;
17 PFNGLGETBUFFERPOINTERVARBPROC glGetBufferPointervARB = 0;
18
19 void init_arb_vertex_buffer_object()
20 {
21         glBindBufferARB = reinterpret_cast<PFNGLBINDBUFFERARBPROC>(get_proc_address("glBindBufferARB"));
22         glDeleteBuffersARB = reinterpret_cast<PFNGLDELETEBUFFERSARBPROC>(get_proc_address("glDeleteBuffersARB"));
23         glGenBuffersARB = reinterpret_cast<PFNGLGENBUFFERSARBPROC>(get_proc_address("glGenBuffersARB"));
24         glIsBufferARB = reinterpret_cast<PFNGLISBUFFERARBPROC>(get_proc_address("glIsBufferARB"));
25         glBufferDataARB = reinterpret_cast<PFNGLBUFFERDATAARBPROC>(get_proc_address("glBufferDataARB"));
26         glBufferSubDataARB = reinterpret_cast<PFNGLBUFFERSUBDATAARBPROC>(get_proc_address("glBufferSubDataARB"));
27         glGetBufferSubDataARB = reinterpret_cast<PFNGLGETBUFFERSUBDATAARBPROC>(get_proc_address("glGetBufferSubDataARB"));
28         glMapBufferARB = reinterpret_cast<PFNGLMAPBUFFERARBPROC>(get_proc_address("glMapBufferARB"));
29         glUnmapBufferARB = reinterpret_cast<PFNGLUNMAPBUFFERARBPROC>(get_proc_address("glUnmapBufferARB"));
30         glGetBufferParameterivARB = reinterpret_cast<PFNGLGETBUFFERPARAMETERIVARBPROC>(get_proc_address("glGetBufferParameterivARB"));
31         glGetBufferPointervARB = reinterpret_cast<PFNGLGETBUFFERPOINTERVARBPROC>(get_proc_address("glGetBufferPointervARB"));
32 }
33
34 } // namespace GL
35 } // namespace Msp