update
This commit is contained in:
@@ -180,6 +180,10 @@ bool LOpenGLProgram::addShader(std::unique_ptr<LOpenGLShader> shader) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void LOpenGLProgram::setUniformValue(const std::string &name, glm::vec2 value) const {
|
||||
glUniform2fv(glGetUniformLocation(programId_, name.c_str()), 1, &value[0]);
|
||||
}
|
||||
|
||||
void LOpenGLProgram::removeShader(GLuint id) {
|
||||
for (auto ite = shaderList_.begin(); ite != shaderList_.end(); ++ite) {
|
||||
if ((*ite)->shaderId_ == id) {
|
||||
|
||||
Reference in New Issue
Block a user