WIP: GUI Toolkit

This commit is contained in:
2015-03-09 01:11:13 +01:00
parent ffbc59140a
commit 9d7dd452c7
24 changed files with 1003 additions and 134 deletions

View File

@@ -121,14 +121,14 @@ GLint Program::getUniformLocation(std::string const& name) const
return ret;
}
GLint Program::getAttribLocation(std::string const& name) const
{
auto search = _attribLocCache.find(name);
if (search != _attribLocCache.end())
return search->second;
// GLint Program::getAttribLocation(std::string const& name) const
// {
// auto search = _attribLocCache.find(name);
// if (search != _attribLocCache.end())
// return search->second;
GLint ret = glGetAttribLocation(_progID, name.c_str());
if (ret != -1)
_attribLocCache.emplace(name, ret);
return ret;
}
// GLint ret = glGetAttribLocation(_progID, name.c_str());
// if (ret != -1)
// _attribLocCache.emplace(name, ret);
// return ret;
// }