X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterial.h;h=3e9765d2a2b9cbfa7d408a37642ca12577fa9ed1;hb=fd62e55d37716787fe909883a1b18e5b8128ec80;hp=df55a56767c6318ad9f6f3effed314520604fcd7;hpb=4af69ec90120a0be828a1ae475a38674087110b5;p=libs%2Fgl.git diff --git a/source/material.h b/source/material.h index df55a567..3e9765d2 100644 --- a/source/material.h +++ b/source/material.h @@ -82,6 +82,11 @@ protected: public: virtual ~Material() { } + virtual Program *create_compatible_shader() const; + virtual const Program *create_compatible_shader(DataFile::Collection &) const; +protected: + virtual std::string create_program_source() const = 0; + public: /** Returns the uniforms for the material. */ const ProgramData &get_shader_data() const { return shdata; }