I want to discuss loading composite resources and find a good way to loading them. I'm using my own file format for storing other files(like zip). I'm using my own binary format for loading 3D models too. My target is to load raw data, then initialize them(creating textures, xml documents, shaders etc.) and then release them. But there is a problem, if models come before textures. I'm having two solutions now:
1) Organizing files to load textures before models
2) Load model, then give a request for texture and if texture is loaded, then send it to every model which want it
But, isn't here a better way(I want to support multithreaded programming)?
It's a good way to loading resources asynchronously?