diff options
Diffstat (limited to 'src/Renderer.hpp')
-rw-r--r-- | src/Renderer.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Renderer.hpp b/src/Renderer.hpp new file mode 100644 index 0000000..81c5c50 --- /dev/null +++ b/src/Renderer.hpp @@ -0,0 +1,18 @@ +#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; +};
\ No newline at end of file |