Repository navigation
5.1.4 - Smooth Texture Scaling
5.1.4 - Smooth Texture Scaling
Smooth Scaling
Fonts
Fonts use linear texture scaling by default, instead of nearest texture scaling. This allows for better-looking text, but pixelated and retro fonts may look bad. If your font looks bad, you can manually go back to linear scaling.
- Add
Font.setPixelatedScaling() - Add
Font.setSmoothScaling() - Add
Font.setFilterMode(int)
TextureBuilder
Texture builders now have two new methods. By default, TextureBuilder uses nearest scaling. To use linear scaling, use TextureBuilder.setSmoothScaling().
- Add
TextureBuilder.setSmoothScaling() - Add
TextureBuilder.setLinearScaling()
Textures
Textures can change their filter mode after creation.
- Add
Texture.setSmoothScaling() - Add
Texture.setPixelatedScaling() - Add
Texture.setFilterMode(int)