]> 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 ca10f7845b78a54dd588f60c37c0fc3d7c958f55..d290e34ecdfe8a5a4f4f14d4ec7fb51136c85402 100644 (file)
@@ -8,6 +8,7 @@ namespace GL {
 
 class Batch;
 class PipelineState;
+class QueryPool;
 
 class Commands
 {
@@ -22,6 +23,9 @@ public:
        void draw(const Batch &);
        void draw_instanced(const Batch &, unsigned);
        void resolve_multisample(Framebuffer &);
+
+       void begin_query(const QueryPool &, unsigned);
+       void end_query(const QueryPool &, unsigned);
 };
 
 } // namespace GL