Added mesh
This commit is contained in:
+3
-5
@@ -1,7 +1,5 @@
|
||||
#include "shader.h"
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
BEGIN_NAMESPACE
|
||||
|
||||
@@ -68,10 +66,10 @@ void shader::unuse() const {
|
||||
}
|
||||
|
||||
int shader::getUniform(const char *uniformName) {
|
||||
if (uniformCache.count(uniformName) == 0) {
|
||||
uniformCache[uniformName] = glGetUniformLocation(program_id, uniformName);
|
||||
if (uniform_cache.count(uniformName) == 0) {
|
||||
uniform_cache[uniformName] = glGetUniformLocation(program_id, uniformName);
|
||||
}
|
||||
return uniformCache[uniformName];
|
||||
return uniform_cache[uniformName];
|
||||
}
|
||||
|
||||
void shader::setMatrix3Uniform(float *matrix, const char *uniformName) {
|
||||
|
||||
Reference in New Issue
Block a user