]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.h
Simplify VAO setup code
[libs/gl.git] / source / program.h
index a7622ecbb586d42d83d9d2380bcdd5d3978d3e24..b41f9ac225e9edc724b18d375b278e4793b6b15b 100644 (file)
@@ -7,6 +7,7 @@
 #include "bindable.h"
 #include "gl.h"
 #include "programbuilder.h"
+#include "vertexformat.h"
 
 namespace Msp {
 namespace GL {
@@ -81,6 +82,8 @@ public:
        const ShaderList &get_shaders() const { return shaders; }
 
        void bind_attribute(unsigned, const std::string &);
+       void bind_attribute(VertexComponent, const std::string &);
+       void bind_fragment_data(unsigned, const std::string &);
 
        void link();
 private: