X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fcommands.h;h=d290e34ecdfe8a5a4f4f14d4ec7fb51136c85402;hb=3c0cbf0529aa06d9809ad3aa9e282400e8209b4d;hp=ec3281a09ae656d9cb610a80c121e72545ab90cc;hpb=ebef7085e2672866189ccdb3a89e977e678a89b9;p=libs%2Fgl.git diff --git a/source/core/commands.h b/source/core/commands.h index ec3281a0..d290e34e 100644 --- a/source/core/commands.h +++ b/source/core/commands.h @@ -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 clear(BufferBits); + 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