Reply – Create a texture from a BufferedImage
Your Name
or Cancel
In Reply To
Create a texture from a BufferedImage
— by AlexRNL AlexRNL

I am quite new to JOGL and I have some questions about a feature implemented in JOGL 1.1.2 which seems to be missing in JOGL 2.0. :(

What I want to do is using a BufferedImage in an JOGL Texture object. The last stable release of JOGL released by Sun (1.1.2) provided the following method :

TextureData com.sun.opengl.util.texture.TextureIO.newTextureData(BufferedImage bufferedimage, boolean flag);

But when i set up JOGL 2.0, the only ways to create a texture data object are via files, streams or URLs. I have tried to transform my buffered image in a stream but with no success...

So my question is, does JOGL 2.0 allows to load a BufferedImage into a Texture object ?
If yes, can someone help me with that, that'd be great :)
If no, I'm interested in knowing why! Does the function of JOGL 1.1.2 was 'bad' in any way ? Will it be implemented in future versions of JOGL ?