X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frender%2Frenderer.h;h=c176f87aa231664f5eccfb442317421737004f47;hp=1cbcdc60546b93f0cccc2db6ee5cb95a27107b39;hb=016f0f0dd51511f98d0bf398d99199d7dec1543c;hpb=0bcebf9930e4baada774a16c0e7637a22a410bb4 diff --git a/source/render/renderer.h b/source/render/renderer.h index 1cbcdc60..c176f87a 100644 --- a/source/render/renderer.h +++ b/source/render/renderer.h @@ -64,6 +64,7 @@ private: mutable int binding = -1; const Texture *texture = 0; const Sampler *sampler = 0; + int level = -1; int replaced = -1; }; @@ -107,6 +108,7 @@ private: ProgramData standard_shdata; std::vector shdata_stack; std::vector texture_stack; + const Texture &placeholder_texture; Commands commands; public: @@ -160,6 +162,7 @@ public: void add_shader_data(const ProgramData &data); void set_texture(Tag, const Texture *, const Sampler * = 0); + void set_texture(Tag, const Texture *, int, const Sampler * = 0); private: void flush_shader_data(); @@ -196,6 +199,7 @@ public: void end_query(const QueryPool &, unsigned); private: + void apply_framebuffer(); void apply_state(); };