]> git.tdb.fi Git - libs/gl.git/blob - source/core/commands.h
ec3281a09ae656d9cb610a80c121e72545ab90cc
[libs/gl.git] / source / core / commands.h
1 #ifndef COMMANDS_H_
2 #define COMMANDS_H_
3
4 #include "framebuffer.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class Batch;
10 class PipelineState;
11
12 class Commands
13 {
14 private:
15         const PipelineState *pipeline_state;
16
17 public:
18         Commands();
19
20         void use_pipeline(const PipelineState &);
21         void clear(BufferBits);
22         void draw(const Batch &);
23         void draw_instanced(const Batch &, unsigned);
24         void resolve_multisample(Framebuffer &, BufferBits);
25 };
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif