]> 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 2dc66cfa5232c8ea409162f0d09b829ccb9012a0..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
 {
@@ -21,7 +22,10 @@ public:
        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