LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: lwjPNG - Lightweight Java PNG loading library  (Read 343 times)

Mike-C

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
lwjPNG - Lightweight Java PNG loading library
« 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,
Logged

matan45

  • Newbie
  • *
  • Offline Offline
  • Posts: 24
Re: lwjPNG - Lightweight Java PNG loading library
« Reply #1 on: November 25, 2017, 11:27:53 »

why not using stb lib?
Logged

darkyellow

  • Newbie
  • *
  • Offline Offline
  • Posts: 25
Re: lwjPNG - Lightweight Java PNG loading library
« Reply #2 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.
Logged