Skip to content

5.1.4 - Smooth Texture Scaling

Choose a tag to compare

@AlexanderJCS AlexanderJCS released this 11 Nov 19:23
· 91 commits to main since this release

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)

(commit)

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()

(commit)

Textures

Textures can change their filter mode after creation.

  • Add Texture.setSmoothScaling()
  • Add Texture.setPixelatedScaling()
  • Add Texture.setFilterMode(int)

(commit)

Bugfixes