Go to the source code of this file.
|
| | if (Settings::mipmap()) |
| | if (ansio==3) |
| sampler | setf (GL_TEXTURE_MAX_ANISOTROPY, static_cast< float >(ansio)) |
| sampler | set (GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE) |
| sampler | set (GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE) |
| sampler | set (GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE) |
| sampler | set (GL_TEXTURE_LOD_BIAS, GL_NONE) |
|
| auto & | sampler = entt::locator<Sampler>::emplace() |
| | else |
◆ if() [1/2]
| if |
( |
Settings::mipmap() | | ) |
|
◆ if() [2/2]
◆ setf()
| sampler setf |
( |
GL_TEXTURE_MAX_ANISOTROPY | , |
|
|
static_cast< float > | ansio ) |
◆ set() [1/4]
| sampler set |
( |
GL_TEXTURE_WRAP_S | , |
|
|
GL_CLAMP_TO_EDGE | ) |
◆ set() [2/4]
| sampler set |
( |
GL_TEXTURE_WRAP_T | , |
|
|
GL_CLAMP_TO_EDGE | ) |
◆ set() [3/4]
| sampler set |
( |
GL_TEXTURE_WRAP_R | , |
|
|
GL_CLAMP_TO_EDGE | ) |
◆ set() [4/4]
| sampler set |
( |
GL_TEXTURE_LOD_BIAS | , |
|
|
GL_NONE | ) |
◆ sampler
| auto& sampler = entt::locator<Sampler>::emplace() |
◆ else
Initial value:{
if (Settings::texture_filter() == GLTextureFilter::NEAREST)
{
sampler.set(GL_TEXTURE_MIN_FILTER, GL_NEAREST);
sampler.set(GL_TEXTURE_MAG_FILTER, GL_NEAREST);
}
else
{
sampler.set(GL_TEXTURE_MIN_FILTER, GL_LINEAR);
sampler.set(GL_TEXTURE_MAG_FILTER, GL_LINEAR);
}
}
auto ansio = std::clamp(Settings::ansiotrophy(), 1, 16)
Definition at line 22 of file texture_settings.hpp.