Texture loading

This commit is contained in:
plane000
2018-09-16 18:24:09 +01:00
parent 0cc6e9cef0
commit c8e234b65e
4 changed files with 4744 additions and 0 deletions

View File

@@ -69,6 +69,12 @@ void Shader::Bind() {
glUseProgram(m_program);
}
std::string Shader::LoadFile(std::string path) {
std::cout << "Successfully loaded " + path << std::endl;
}
Shader::~Shader() {
for (unsigned int i = 0; i < NUM_SHADERS; i++) {
glDetachShader(m_program, m_shaders[i]);