Open a image

How do I open a .png image for a game?
It depends on what API you're using.
You can try libpng
that depends what library/SDK/engine/API are you using.
I'm using allegro (I Think that what you mean)
Search their documents and tutorials for loading a png to buffer. But to be honest you're going all wrong about it. png files arent really suited for games. you should learn how to use tga
Okay thanks for the advice I'll look into it. :)
No prob :)
Quick question, why is it better to use tga?
Topic archived. No new replies allowed.