X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Frenderer.h;h=5139c4ce925fd978d8136e6b5655f6ddfd4087d2;hb=729a477b47e97aea41f3f0b5db551f02bf70d1ee;hp=23f7c5cc9a3f132d6154b9e9241aedcf7d186322;hpb=ce3658993ce2f6b7527a04a36a5e1af349c6f2e9;p=libs%2Fgl.git diff --git a/source/render/renderer.h b/source/render/renderer.h index 23f7c5cc..5139c4ce 100644 --- a/source/render/renderer.h +++ b/source/render/renderer.h @@ -3,6 +3,7 @@ #include #include +#include "commands.h" #include "framebuffer.h" #include "matrix.h" #include "pipelinestate.h" @@ -24,7 +25,6 @@ class Renderable; class Sampler; class Texture; class VertexSetup; -class WindingTest; /** A class for supervising the rendering process. While many Renderables (in @@ -92,7 +92,6 @@ private: const Rect *viewport; const Rect *scissor; unsigned texture_count; - unsigned lowest_effect_texunit; const Clipping *clipping; const Program *shprog; unsigned shdata_count; @@ -121,6 +120,7 @@ private: std::vector shdata_stack; std::set excluded; PipelineState pipeline_state; + Commands commands; public: Renderer(); @@ -195,14 +195,13 @@ public: void exclude(const Renderable &); void include(const Renderable &); - void clear(); - void clear(BufferBits); + void clear(const ClearValue *); void render(const Renderable &, Tag = Tag()); void draw(const Batch &); void draw_instanced(const Batch &, unsigned); - void resolve_multisample(Framebuffer &, BufferBits); + void resolve_multisample(Framebuffer &); private: void apply_state();