Login  Register

Re: Loading texture doesn't work with the correct texture width/height

Posted by Demoscene Passivist on Jan 27, 2011; 3:12pm
URL: https://forum.jogamp.org/Loading-texture-doesn-t-work-with-the-correct-texture-width-height-tp2362327p2362946.html

For a couple of utility methods dealing with texture io u could take a look at my TextureUtils class.

I guess loadImageAsTexture_UNMODIFIED() is what u might want.

If u like to do bytebuffer stuff u also might take a look at convertARGBBufferedImageToJOGLRGBADirectByteBuffer().

Happy coding