I am about to implement PNG support for my OpenGL extension project. I have tried many different PNG libs but can't seem to find a good one.. Can any one recommend a good lib?
Printable View
I am about to implement PNG support for my OpenGL extension project. I have tried many different PNG libs but can't seem to find a good one.. Can any one recommend a good lib?
AFAIK MMF2 uses the standard combination of libpng and zlib to load PNG files.
Yeah that should be the case.. I guess I have to use that then... : \
Is there not a way you can use MMF2's image filters with your OpenGL implementation?
Yeah, using MMF2's engine will be much better.
More formats will be easily added, which might be VERY important after the filter SDK is out.
I agree. There is an example in the SDK to load images with the MMF2 filters. Let me know if you need more info.
OK.. I'll give it a try!
Yeah you would have to load the image to a cSurface and then get the HDC of the cSurface in order to transfer it to an OpenGL texture. It is probally going to be a bit of work :).
I implemented it last night and it works.. I have a "random" crash however.. If it because of my new texture code or not is still unclear...
What does your debugger say?Quote:
If it because of my new texture code or not is still unclear...