X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.cpp;h=1d08270fd50aca7abd45e18f9660213e09a24227;hb=79b9a1c86ecf81753934669d531679f29c6ab6e1;hp=b7f8577dc698c3190ba8e8b4dfd092c5e241772d;hpb=1431f24f29bd6862d547b831c40b2686ff56d1ef;p=libs%2Fgl.git diff --git a/source/program.cpp b/source/program.cpp index b7f8577d..1d08270f 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -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::iterator i=shaders.begin(); i!=shaders.end(); ++i)