implement brush outline

This commit is contained in:
2019-01-18 11:11:00 +01:00
parent 580fab77c6
commit 8315b32550
4 changed files with 18 additions and 2 deletions

View File

@@ -134,6 +134,12 @@ void Sampler::set_filter(GLint filter_min, GLint filter_mag)
glSamplerParameteri(id, GL_TEXTURE_MAG_FILTER, filter_mag);
#endif // USE_SAMPLER
}
void Sampler::set_border(glm::vec4 rgba)
{
#if USE_SAMPLER
glSamplerParameterfv(id, GL_TEXTURE_BORDER_COLOR, glm::value_ptr(rgba));
#endif // USE_SAMPLER
}
void Sampler::bind(int unit) const
{
current_unit = unit;