private:
unsigned id;
- std::vector<unsigned> shader_ids;
+ std::vector<unsigned> stage_ids;
const Module *module;
bool linked;
UniformBlockMap uniform_blocks;
public:
virtual ~Program();
+private:
+ unsigned add_stage(GLenum);
+public:
void add_stages(const Module &, const std::map<std::string, int> & = std::map<std::string, int>());
+private:
+ void compile_stage(unsigned);
+public:
DEPRECATED void attach_shader(Shader &shader);
DEPRECATED void attach_shader_owned(Shader *shader);
DEPRECATED void detach_shader(Shader &shader);
DEPRECATED const std::vector<Shader *> &get_attached_shaders() const;
DEPRECATED void bind_attribute(unsigned, const std::string &);
- DEPRECATED void bind_attribute(VertexComponent, const std::string &);
+ DEPRECATED void bind_attribute(VertexAttribute, const std::string &);
DEPRECATED void bind_fragment_data(unsigned, const std::string &);
void link();