]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.h
Add an overload of bind_attribute that takes a VertexComponent
[libs/gl.git] / source / program.h
index 642bcf5e7755652734069e33d9df182a0e2fad96..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,7 @@ 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();