Sign in to follow this  
Fire Lancer

Reading from compressed files

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("", std::ios::in | std::ios::binary);

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this