rename GLProgram::operator[]() to GLProgram::get_uniform()
This commit is contained in:
parent
5403d13f6a
commit
f75cd9d4ad
@ -67,7 +67,7 @@ namespace jes
|
||||
return true;
|
||||
}
|
||||
|
||||
GLint GLProgram::operator[](const std::string & uniform_name)
|
||||
GLint GLProgram::get_uniform(const std::string & uniform_name)
|
||||
{
|
||||
if (m_id > 0u)
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ namespace jes
|
||||
bool link();
|
||||
GLuint get_id() { return m_id; }
|
||||
void use() { glUseProgram(m_id); }
|
||||
GLint operator[](const std::string & uniform_name);
|
||||
GLint get_uniform(const std::string & uniform_name);
|
||||
protected:
|
||||
GLuint m_id;
|
||||
std::map<std::string, GLint> m_uniforms;
|
||||
|
Loading…
x
Reference in New Issue
Block a user