Advertisement Jump to content


This topic is now archived and is closed to further replies.


PNG and pack files

This topic is 7061 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
Yeah, I noticed that, but I wanted to see if anyone knew of another way before I rewrote my PNG reading routine.


Share this post

Link to post
Share on other sites
I use PNG files in my game. Right now, they're all grouped in seperate directories as regular files. What I want to do is pack them all together into one file. Writing the packed file is not an issue, the problem is figuring out how toread the PNG files from it. libpng expects a file pointer for its reads, which isn't very viable with them packed together. So does anyone know how I could read a PNG file from a packed file? Or should I go with a different graphic format?

Share this post

Link to post
Share on other sites
Take a look at the Code on the Cob series of articles written by Chris Hargrove of 3DRealms. They're on, and in the issue that he delves into file i/o, he explains how to make a .pak'd file.

I'm glad you wrote this in the board, because it's reminded me to find out if I could get a local copy of these for GDNet. :-)


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!