ProgramBuilder builder(features);
builder.add_shaders(*this);
- if(!features.transform)
- link();
+ link();
}
Program::Program(const string &vert, const string &frag)
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);