]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/commands.h
Move all OpenGL-specific code to a separate directory
[libs/gl.git] / source / core / commands.h
index d290e34ecdfe8a5a4f4f14d4ec7fb51136c85402..869c41b615ea9f66a206156c37e7c586a7157971 100644 (file)
@@ -1,31 +1,23 @@
 #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;
-
-class Commands
+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