]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/commands.h
Add an abstraction for queries
[libs/gl.git] / source / core / commands.h
index 08fdbffd89223a7cda3648a18f2e8a97c85138cf..d290e34ecdfe8a5a4f4f14d4ec7fb51136c85402 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef COMMANDS_H_
-#define COMMANDS_H_
+#ifndef MSP_GL_COMMANDS_H_
+#define MSP_GL_COMMANDS_H_
 
 #include "framebuffer.h"
 
@@ -8,6 +8,7 @@ namespace GL {
 
 class Batch;
 class PipelineState;
+class QueryPool;
 
 class Commands
 {
@@ -17,11 +18,14 @@ private:
 public:
        Commands();
 
-       void use_pipeline(const PipelineState &);
+       void use_pipeline(const PipelineState *);
        void clear(const ClearValue *);
        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);
 };
 
 } // namespace GL