BufferedImage to Texture

Ok… I’m going through the painful process of moving a game that is well under development from Java2D into LWJGL

I’ve already made a system that dynamically makes a huge sprite sheet and remembers where all the sprites are, so the whole binding Texture should be ready to go.

Now here’s the one method I need to implement before I can proceed (and it’ll only be called once or maybe a few times per game)

I need to make a BufferedImage into a Texture object

I don’t care if it’s really ugly or really “slow”, because it’s a very rare method

I’m having a hard time figuring out how to accomplish this. Does anyone know?

Thanks