dust3d/thirdparty/FastMassSpring/ClothApp/Renderer.h

22 lines
424 B
C
Raw Normal View History

#pragma once
#include <glm/gtc/matrix_transform.hpp>
#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();
};