]> git.tdb.fi Git - libs/gl.git/blobdiff - source/arb_vertex_shader.cpp
Add support for detecting extensions
[libs/gl.git] / source / arb_vertex_shader.cpp
diff --git a/source/arb_vertex_shader.cpp b/source/arb_vertex_shader.cpp
new file mode 100644 (file)
index 0000000..9c9dc3d
--- /dev/null
@@ -0,0 +1,19 @@
+#include "extension.h"
+#include "arb_vertex_shader.h"
+
+namespace Msp {
+namespace GL {
+
+PFNGLBINDATTRIBLOCATIONARBPROC glBindAttribLocationARB=0;
+PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB=0;
+PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB=0;
+
+void init_arb_vertex_shader()
+{
+       glBindAttribLocationARB=reinterpret_cast<PFNGLBINDATTRIBLOCATIONARBPROC>(get_proc_address("glBindAttribLocationARB"));
+       glGetActiveAttribARB=reinterpret_cast<PFNGLGETACTIVEATTRIBARBPROC>(get_proc_address("glGetActiveAttribARB"));
+       glGetAttribLocationARB=reinterpret_cast<PFNGLGETATTRIBLOCATIONARBPROC>(get_proc_address("glGetAttribLocationARB"));
+}
+
+} // namespace GL
+} // namespace Msp