]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/commands_backend.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / backends / opengl / commands_backend.h
1 #ifndef MSP_GL_COMMANDS_BACKEND_H_
2 #define MSP_GL_COMMANDS_BACKEND_H_
3
4 namespace Msp {
5 namespace GL {
6
7 class Batch;
8 union ClearValue;
9 class Framebuffer;
10 class PipelineState;
11 class QueryPool;
12
13 class OpenGLCommands
14 {
15 protected:
16         const PipelineState *pipeline_state = 0;
17
18         OpenGLCommands() = default;
19
20         void begin_frame(unsigned) { }
21         void submit_frame();
22
23         void use_pipeline(const PipelineState *);
24         void clear(const ClearValue *);
25         void draw(const Batch &);
26         void draw_instanced(const Batch &, unsigned);
27         void dispatch(unsigned, unsigned, unsigned);
28         void resolve_multisample();
29
30         void begin_query(const QueryPool &, unsigned);
31         void end_query(const QueryPool &, unsigned);
32 };
33
34 using CommandsBackend = OpenGLCommands;
35
36 } // namespace GL
37 } // namespace Msp
38
39 #endif
40