Distributed under the LGPL
*/
+#include <algorithm>
#include "arb_shader_objects.h"
#include "arb_vertex_shader.h"
#include "except.h"
add("attribute", &Loader::attribute);
}
-Program::Loader::~Loader()
-{
- prog.link();
-}
-
void Program::Loader::vertex_shader(const string &src)
{
prog.attach_shader(*new Shader(VERTEX_SHADER, src));
prog.bind_attribute(i, n);
}
+void Program::Loader::finish()
+{
+ prog.link();
+}
+
} // namespace GL
} // namespace Msp