#pragma once #include #include "Shader.h" class Renderer { protected: GLProgram* program; ProgramInput* input; unsigned int n_elements; public: Renderer(); void setProgram(GLProgram* program); void setProgramInput(ProgramInput* input); void setModelview(const glm::mat4& mv); void setProjection(const glm::mat4& p); void setElementCount(unsigned int n_elements); void draw(); };