All my images are PNG format. I’ve gotten to the point where I can draw these images using gl.glDrawPixels(). I generate all the byte[] buffers upon load of the game, however this itself isn’t adequate if I want images rotated during the game. What is the best way to implement this?
-
Use Java2D to apply AffineTransform rotation to image and then produce byte[] for each frame. Seems like this add a lot of overhead, especially with 60+ fps.
-
Use Textures? I’m wondering if I convert an image to texture if JOGL can do the rotation for me.
-
Any other ideas?