PNG support

Monkey Targets Forums/Desktop/PNG support

Leon Brown(Posted 2012) [#1]
Is it possible to use full colour PNG images with GLFW? My game uses 24 bit PNGs with transparency, but Monkey compiles to show only shades of green - transparency works fine though.


DruggedBunny(Posted 2012) [#2]
They should work fine. Does the James Boyd -> Matrix Rocks sample work? I mention this one specifically because it works, but the SetColor command changed at some point to affect images as well as rects, etc, and a couple of my other demos DO show as all green as a result!

So, possibly silly question: are you using SetColor at all to draw something in green, then not changing it back to 255, 255, 255?

Failing that, can you post an example PNG?


Leon Brown(Posted 2012) [#3]
That works great now - thanks!