LWJGL Forum

Programming => General Java Game Development => Topic started by: Mike-C on August 15, 2017, 00:42:15

Title: lwjPNG - Lightweight Java PNG loading library
Post by: Mike-C on August 15, 2017, 00:42:15
Hello,

For anyone interested, I have just released a very simple PNG loading library, you can use for LWJGL textures.

https://github.com/Mike-C/lwjPNG

It currently supports only 24&32 bit PNG, interlaced or not, and also scale, if you need texture sizes to be power of two.

Actually there is some extra overhead for scaling, which also uses more memory, but I wonted to keep the release simple, interlace mode compatible.
And whole image file is read during initialization, not only the image info chunk, that possibly will be fixed later.

Hope that you can find it useful!

Best regards,
Title: Re: lwjPNG - Lightweight Java PNG loading library
Post by: matan45 on November 25, 2017, 11:27:53
why not using stb lib?
Title: Re: lwjPNG - Lightweight Java PNG loading library
Post by: darkyellow on November 28, 2017, 13:46:22
why not? for those that dont want jni bindings or want to integrate with GWT forinstance java is the way to go. I have my own png decoder too. I'm pro pure java but everyone is different, i have code shared with android so the more portability the better for me.