X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.h;h=e78c8ccd0bfef96d0da006827bd6e22dee527973;hb=6c525eff3eaaa617648a869449ed3bddf9c1936d;hp=b41f9ac225e9edc724b18d375b278e4793b6b15b;hpb=749e72344ba72c5654306178617f08cdb0ee03cd;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index b41f9ac2..e78c8ccd 100644 --- a/source/program.h +++ b/source/program.h @@ -14,6 +14,10 @@ namespace GL { class Shader; +/** +A complete shader program. Programs can be assembled of individual Shaders or +generated with a set of standard features. +*/ class Program: public Bindable { public: @@ -68,9 +72,15 @@ private: bool legacy_vars; public: + /// Constructs an empty Program with no Shaders attached. Program(); + + /// Constructs a Program with standard features. Program(const ProgramBuilder::StandardFeatures &); + + /// Constructs a Program from vertex and fragment shader source code. Program(const std::string &, const std::string &); + private: void init(); public: