109 glTextureParameteri(
m_id, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_NEAREST);
110 glTextureParameteri(
m_id, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
114 glTextureParameteri(
m_id, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
115 glTextureParameteri(
m_id, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
int anisotropy() const
Get current anisotropy level.
Texture & operator=(Texture &&)
Move assignment operator.
TextureView make_view(const unsigned int minlevel=0, const unsigned int numlevels=1, const unsigned int minlayer=0, const unsigned int numlayers=1)
Create a texture view.
TextureFilter filter() const
Get texture filter.