X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fcommands.h;h=32adeddd77089f9db6bf3b9c8bd23e7cb1dfaccf;hp=d290e34ecdfe8a5a4f4f14d4ec7fb51136c85402;hb=6cee6c490ded0981c4da3f9f4ec74a41555e1a4e;hpb=052b85720688900bc36f8844a94269cb1c0cdd52 diff --git a/source/core/commands.h b/source/core/commands.h index d290e34e..32adeddd 100644 --- a/source/core/commands.h +++ b/source/core/commands.h @@ -1,31 +1,28 @@ #ifndef MSP_GL_COMMANDS_H_ #define MSP_GL_COMMANDS_H_ -#include "framebuffer.h" +#include "commands_backend.h" namespace Msp { namespace GL { -class Batch; -class PipelineState; -class QueryPool; +/** +Interface for low-level graphics commands. -class Commands +Applications normally use the higher-level Renderer class rather than this. +*/ +class Commands: public CommandsBackend { -private: - const PipelineState *pipeline_state; - public: - Commands(); + using CommandsBackend::use_pipeline; - void use_pipeline(const PipelineState *); - void clear(const ClearValue *); - void draw(const Batch &); - void draw_instanced(const Batch &, unsigned); - void resolve_multisample(Framebuffer &); + using CommandsBackend::clear; + using CommandsBackend::draw; + using CommandsBackend::draw_instanced; + using CommandsBackend::resolve_multisample; - void begin_query(const QueryPool &, unsigned); - void end_query(const QueryPool &, unsigned); + using CommandsBackend::begin_query; + using CommandsBackend::end_query; }; } // namespace GL