mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:40:05 +00:00
Use geometry shaders for icon and polygon thresholds, fix threshold method to map distance for placefile text
This commit is contained in:
parent
69f93d6faf
commit
12833202b7
7 changed files with 174 additions and 100 deletions
|
|
@ -56,6 +56,16 @@ GLuint ShaderProgram::id() const
|
|||
return p->id_;
|
||||
}
|
||||
|
||||
GLint ShaderProgram::GetUniformLocation(const std::string& name)
|
||||
{
|
||||
GLint location = p->gl_.glGetUniformLocation(p->id_, name.c_str());
|
||||
if (location == -1)
|
||||
{
|
||||
logger_->warn("Could not find {}", name);
|
||||
}
|
||||
return location;
|
||||
}
|
||||
|
||||
std::string ShaderProgram::Impl::ShaderName(GLenum type)
|
||||
{
|
||||
auto it = kShaderNames_.find(type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue