]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/renderer_backend.h
Support multiple PipelineStates in Renderer
[libs/gl.git] / source / backends / opengl / renderer_backend.h
1 #ifndef MSP_GL_RENDERER_BACKEND_H_
2 #define MSP_GL_RENDERER_BACKEND_H_
3
4 #include <msp/core/noncopyable.h>
5 #include "pipelinestate.h"
6
7 namespace Msp {
8 namespace GL {
9
10 class OpenGLRenderer: public NonCopyable
11 {
12 protected:
13         PipelineState pipeline_state;
14
15         void begin() { }
16         void end();
17
18         void set_pipeline_key(std::uintptr_t) { }
19         PipelineState &get_pipeline_state() { return pipeline_state; }
20 };
21
22 using RendererBackend = OpenGLRenderer;
23
24 } // namespace GL
25 } // namespace Msp
26
27 #endif