X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fcommands.h;h=32adeddd77089f9db6bf3b9c8bd23e7cb1dfaccf;hb=8e58fc4da8443cb67fe4cd70d6f68de2be73011d;hp=2dc66cfa5232c8ea409162f0d09b829ccb9012a0;hpb=0d5406c66549a2cfc2fca701cc1c4972e7fd493a;p=libs%2Fgl.git diff --git a/source/core/commands.h b/source/core/commands.h index 2dc66cfa..32adeddd 100644 --- a/source/core/commands.h +++ b/source/core/commands.h @@ -1,27 +1,28 @@ -#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; +/** +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; + + 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