]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.cpp
Move VertexFormat and VertexArrayBuilder to their own files
[libs/gl.git] / source / program.cpp
index b7f8577dc698c3190ba8e8b4dfd092c5e241772d..1d08270fd50aca7abd45e18f9660213e09a24227 100644 (file)
@@ -43,6 +43,11 @@ void Program::detach_shader(Shader &shader)
        }
 }
 
+void Program::bind_attribute(int index, const string &name)
+{
+       glBindAttribLocation(id, index, name.c_str());
+}
+
 bool Program::link()
 {
        for(list<Shader *>::iterator i=shaders.begin(); i!=shaders.end(); ++i)