X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fcommands.h;h=869c41b615ea9f66a206156c37e7c586a7157971;hb=160e9eea29bd10034733d59507fa1bcca36be401;hp=08fdbffd89223a7cda3648a18f2e8a97c85138cf;hpb=006bdb4f8660098fc524dcca80b24c943c65b249;p=libs%2Fgl.git diff --git a/source/core/commands.h b/source/core/commands.h index 08fdbffd..869c41b6 100644 --- a/source/core/commands.h +++ b/source/core/commands.h @@ -1,27 +1,23 @@ -#ifndef COMMANDS_H_ -#define COMMANDS_H_ +#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 Commands +class Commands: public CommandsBackend { -private: - const PipelineState *pipeline_state; - public: - Commands(); + using CommandsBackend::use_pipeline; + + using CommandsBackend::clear; + using CommandsBackend::draw; + using CommandsBackend::draw_instanced; + using CommandsBackend::resolve_multisample; - void use_pipeline(const PipelineState &); - void clear(const ClearValue *); - void draw(const Batch &); - void draw_instanced(const Batch &, unsigned); - void resolve_multisample(Framebuffer &, BufferBits); + using CommandsBackend::begin_query; + using CommandsBackend::end_query; }; } // namespace GL