X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogram.cpp;h=50ebed22899d57fae6d21518fdce048084b7062b;hp=9c95ee1730d522665fd78e63ed1124a8ab618556;hb=749e72344ba72c5654306178617f08cdb0ee03cd;hpb=68260aafcd39a36f7a1f6329018e5b91506e558b diff --git a/source/program.cpp b/source/program.cpp index 9c95ee17..50ebed22 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -89,6 +89,11 @@ void Program::bind_attribute(unsigned index, const string &name) glBindAttribLocation(id, index, name.c_str()); } +void Program::bind_attribute(VertexComponent comp, const string &name) +{ + bind_attribute(get_component_type(comp), name); +} + void Program::bind_fragment_data(unsigned index, const string &name) { static Require _req(EXT_gpu_shader4);