#include <vector>
#include "commands.h"
#include "matrix.h"
-#include "pipelinestate.h"
#include "programdata.h"
+#include "renderer_backend.h"
#include "tag.h"
namespace Msp {
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.
ProgramData standard_shdata;
std::vector<BoundProgramData> shdata_stack;
std::vector<BoundTexture> texture_stack;
- PipelineState pipeline_state;
Commands commands;
public:
Renderer();
- ~Renderer();
/** Begins rendering, allowing commands to be issued. */
void begin();