Does someone have sample code which loads images from the standard imaging apis (BufferedImage) to ByteBuffers. I would like to use compressed images (.jpg, .gif) as textures, but the only way to feed OpenGL with textures seems to be using raw image formats in byte buffers.
Thanks in advance