]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/commands.h
Create a class for issuing drawing commands
[libs/gl.git] / source / core / commands.h
diff --git a/source/core/commands.h b/source/core/commands.h
new file mode 100644 (file)
index 0000000..ec3281a
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef COMMANDS_H_
+#define COMMANDS_H_
+
+#include "framebuffer.h"
+
+namespace Msp {
+namespace GL {
+
+class Batch;
+class PipelineState;
+
+class Commands
+{
+private:
+       const PipelineState *pipeline_state;
+
+public:
+       Commands();
+
+       void use_pipeline(const PipelineState &);
+       void clear(BufferBits);
+       void draw(const Batch &);
+       void draw_instanced(const Batch &, unsigned);
+       void resolve_multisample(Framebuffer &, BufferBits);
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif