Jump to content
  • Advertisement
Sign in to follow this  
Fire Lancer

Reading from compressed files

This topic is 3479 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

I want to place all my games content in a compressed archive file as its starting to get quite large. I know theres a few libaryies around like zlib but i dont know how to make them do what I want to do: -Be able to load textures/models etc from the file, curretly im using d3dx methods such as D3DXCreateTextureFromFileEx. I dont really want to have to write my own image loaders for the diffrent formats I want, so I need some way to be compatible with these d3d methods. I know they have a way to load from an in-memory file, would it be suitable to extract the file into memory somehow then load that? -Be able to use c++ streams with files in the compressed archive eg: std::zipstream file("data.zip:sounds/explosion.wav", std::ios::in | std::ios::binary);

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!