]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
Move a few bits of Renderer into a backend class
[libs/gl.git] / source / render / renderer.h
index 575dbe67ee8af1e9adf758c3be0c7ca0caea3045..a0b4e75fdf2ece24b7e082787258b63238080762 100644 (file)
@@ -5,8 +5,8 @@
 #include <vector>
 #include "commands.h"
 #include "matrix.h"
-#include "pipelinestate.h"
 #include "programdata.h"
+#include "renderer_backend.h"
 #include "tag.h"
 
 namespace Msp {
@@ -39,8 +39,10 @@ Renderables can save the state by pushing it on the stack before beginning
 their work, and pop it afterwards to restore it without disturbing state set
 by outer scopes.
 */
-class Renderer
+class Renderer: public RendererBackend
 {
+       friend RendererBackend;
+
 public:
        /**
        RAII helper class for pushing state on the stack.
@@ -104,7 +106,6 @@ private:
        ProgramData standard_shdata;
        std::vector<BoundProgramData> shdata_stack;
        std::vector<BoundTexture> texture_stack;
-       PipelineState pipeline_state;
        Commands commands;
 
 public: