]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/commands.h
Remove support for array size specialization from the engine as well
[libs/gl.git] / source / core / commands.h
index ca10f7845b78a54dd588f60c37c0fc3d7c958f55..32adeddd77089f9db6bf3b9c8bd23e7cb1dfaccf 100644 (file)
@@ -1,27 +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;
+/**
+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 &);
+       using CommandsBackend::begin_query;
+       using CommandsBackend::end_query;
 };
 
 } // namespace GL