2020-07-25 14:29:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Program.hpp"
|
|
|
|
|
2020-07-25 16:45:03 +00:00
|
|
|
namespace pass {
|
|
|
|
/// Solid colors pass
|
|
|
|
class ColorProgram: public Program {
|
|
|
|
public:
|
|
|
|
ColorProgram();
|
|
|
|
~ColorProgram();
|
2020-07-25 14:29:05 +00:00
|
|
|
|
2020-09-26 22:05:43 +00:00
|
|
|
buffer::params setup(render::gl::Renderer *, glm::mat4 modelMatrix);
|
2020-07-25 14:29:05 +00:00
|
|
|
|
2020-08-30 16:35:45 +00:00
|
|
|
protected:
|
|
|
|
std::string getName() const override;
|
2020-07-25 16:45:03 +00:00
|
|
|
void setMVP(const GLfloat *matrix);
|
2020-07-25 14:29:05 +00:00
|
|
|
|
2020-07-25 16:45:03 +00:00
|
|
|
private:
|
|
|
|
GLuint MVPMatrixID;
|
|
|
|
};
|
|
|
|
}
|