#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();
/** Replaces the Renderer's model matrix. */
void set_matrix(const Matrix &);
- /** Applies a transform to the Renderer's model matrix. */
- void transform(const Matrix &);
-
/** Returns the current model matrix. */
const Matrix &get_matrix() const { return get_state().model_matrix; }