#include "bindable.h"
#include "gl.h"
#include "programbuilder.h"
+#include "vertexformat.h"
namespace Msp {
namespace GL {
UniformBlockMap uniform_blocks;
UniformMap uniforms;
unsigned uniform_layout_hash;
+ bool legacy_vars;
public:
Program();
const ShaderList &get_shaders() const { return shaders; }
void bind_attribute(unsigned, const std::string &);
+ void bind_attribute(VertexComponent, const std::string &);
+ void bind_fragment_data(unsigned, const std::string &);
void link();
private:
const UniformInfo &get_uniform_info(const std::string &) const;
int get_uniform_location(const std::string &) const;
+ bool uses_legacy_variables() const { return legacy_vars; }
+
void bind() const;
static void unbind();
};