]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
Use constructor delegation instead of init functions when possible
[libs/gl.git] / source / render / renderer.h
index ff2c2a2fb49207de2dc7c236563d5365d4eb3d79..af9eac0426e4c265a76bd2dc54879a5f85b636c3 100644 (file)
@@ -4,7 +4,6 @@
 #include <set>
 #include <vector>
 #include "commands.h"
-#include "framebuffer.h"
 #include "matrix.h"
 #include "pipelinestate.h"
 #include "programdata.h"
@@ -16,11 +15,13 @@ namespace GL {
 class Batch;
 class Buffer;
 class Camera;
+union ClearValue;
 class Clipping;
 class Material;
 class Mesh;
 class Lighting;
 class Program;
+class QueryPool;
 class Renderable;
 class Sampler;
 class Texture;
@@ -195,14 +196,16 @@ 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 &);
+
+       void begin_query(const QueryPool &, unsigned);
+       void end_query(const QueryPool &, unsigned);
 
 private:
        void apply_state();