0

A model that i'm importing has few textures images. I want to load them all and make a texture atlas. I'm trying to mess around with javas BufferedImage, but i dont event know how to convert lwjgl Texture class to BufferedImage... So how can i make the texture atlas from Texture classes? The result should also be in the Texture class.

Qualphey
  • 1,244
  • 1
  • 19
  • 44

1 Answers1

0

Despite this question being more than four months old, I'd like to answer it just for the sake of anyone else who needs help with the same issue, as I did. You should be able to get the ARGB bytes from the Slick texture and convert that into a BufferedImage, and from there you can just combine the BufferedImages into one (like so) and convert that back to a Texture.

Community
  • 1
  • 1
Max Roncace
  • 1,277
  • 2
  • 15
  • 40