blob: 81c5c505a55b187b2102ea1083b25b819cedf7d8 (
plain) (
tree)
|
|
#pragma once
#include <GL/glew.h>
class RenderState {
GLuint ActiveVao;
GLuint ActiveShader;
public:
void SetActiveVao(GLuint Vao);
void SetActiveShader(GLuint Shader);
};
struct Renderer {
virtual ~Renderer() = default;
virtual void Render(RenderState& renderState) = 0;
virtual void PrepareResources() = 0;
virtual void PrepareRender() = 0;
};
|