namespace Msp {
namespace GL {
+class GlslModule;
class Module;
class Shader;
private:
unsigned id;
- std::vector<unsigned> shader_ids;
+ std::vector<unsigned> stage_ids;
const Module *module;
bool linked;
UniformBlockMap uniform_blocks;
virtual ~Program();
void add_stages(const Module &, const std::map<std::string, int> & = std::map<std::string, int>());
+private:
+ unsigned add_stage(GLenum);
+ void add_glsl_stages(const GlslModule &, const std::map<std::string, int> &);
+ void compile_glsl_stage(unsigned);
+public:
DEPRECATED void attach_shader(Shader &shader);
DEPRECATED void attach_shader_owned(Shader *shader);
DEPRECATED void detach_shader(Shader &shader);