I searched on the Internet but couldn't find the way to use mipmaps with libGDX TextureAtlas
. I want atlas instead of normal textures because as far as I know mipmap supports only 2^n width and height and my single textures have other width and height but atlas have 2048x1024.
I can use mipmaps with Texture
using
TextureParameter param = new TextureParameter();
param.minFilter = TextureFilter.Linear;
param.genMipMaps = true;
manager.load("data/mytexture.png", Texture.class, param);
but it's not working with TextureAtlas
, I tried to change TextureParameter
to TextureAtlasParameter
but this class don't have genMipMaps
field and can't be passed to load
method, too.