Saxum/shader.cc

18 lines
377 B
C++
Raw Normal View History

2014-10-22 22:52:04 +00:00
#include "shader.hh"
Shader::Shader(std::string filePath, Model model) {
reference = ACGL::OpenGL::ShaderProgramCreator(filePath).attributeLocations(
model.getReference()->getAttributeLocations()).create();
reference->use();
}
Shader::Shader() {
}
2014-10-22 22:52:04 +00:00
Shader::~Shader() {
}
ACGL::OpenGL::SharedShaderProgram Shader::getReference() {
return reference;
}