2 #include "arb_vertex_buffer_object.h"
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;
19 void init_arb_vertex_buffer_object()
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"));