]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/commands_backend.h
Use default member initializers for simple types
[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 use_pipeline(const PipelineState *);
21         void clear(const ClearValue *);
22         void draw(const Batch &);
23         void draw_instanced(const Batch &, unsigned);
24         void resolve_multisample(Framebuffer &);
25
26         void begin_query(const QueryPool &, unsigned);
27         void end_query(const QueryPool &, unsigned);
28 };
29
30 using CommandsBackend = OpenGLCommands;
31
32 } // namespace GL
33 } // namespace Msp
34
35 #endif
36