X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frenderpass.h;h=934a213e3e815f0f855dfc10ca3b9add2c2193e5;hb=ae9abd6be3e556d0a202cc5ab05668da715382c9;hp=ac752ae230c5c9b7d6435d2fc8de2938b3426b55;hpb=c10c05365187cf717e3e95c446fdc6a890b114bd;p=libs%2Fgl.git diff --git a/source/renderpass.h b/source/renderpass.h index ac752ae2..934a213e 100644 --- a/source/renderpass.h +++ b/source/renderpass.h @@ -11,6 +11,7 @@ namespace GL { class Material; class Program; class ProgramData; +class Renderer; class TexEnv; class Texture; class Texturing; @@ -62,6 +63,7 @@ private: RefPtr material; Texturing *texturing; std::map tex_names; + bool back_faces; RenderPass &operator=(const RenderPass &); public: @@ -77,6 +79,10 @@ public: void set_texture(unsigned, const Texture *); const Texturing *get_texturing() const { return texturing; } int get_texture_index(const std::string &) const; + void set_back_faces(bool); + bool get_back_faces() const { return back_faces; } + + void apply(Renderer &) const; }; } // namespace GL