implement brush outline
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user