Saxum/shader.cc
2014-10-23 00:52:04 +02:00

15 lines
355 B
C++

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