X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.h;h=7038468b52ce048e27042a86e100807c4fe93ed2;hb=4c705a6fba590514bc3fab2a324c24fddc30cac6;hp=f318c60639012ea66f9da3c43139003cae519202;hpb=a061bbfa87391ddea42c6220c1e17054d5b6b0c8;p=libs%2Fgl.git diff --git a/source/core/program.h b/source/core/program.h index f318c606..7038468b 100644 --- a/source/core/program.h +++ b/source/core/program.h @@ -92,7 +92,7 @@ public: private: unsigned id; - std::vector shader_ids; + std::vector stage_ids; const Module *module; bool linked; UniformBlockMap uniform_blocks; @@ -118,8 +118,14 @@ private: public: virtual ~Program(); +private: + unsigned add_stage(GLenum); +public: void add_stages(const Module &, const std::map & = std::map()); +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);