Reading from compressed files

Started by
-1 comments, last by Fire Lancer 15 years, 4 months ago
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);

This topic is closed to new replies.

Advertisement