Looks good. I've written a "resource manager" in C++ for one of my
projects. I manages resources(game content) stored on disk. I'm gonna
make a change to the design soon, but not a very big one. If you peeps
want to use it, feel free. I attached the current state of it, I'm
pretty sure it works :)
To use it you register a file with the 'resman_register' function which
takes a filename, a "cache type", and pointers to 2 functions as
arguments and returns a RES_ID. Then you call "resman_ptr_for_id" which
takes a RES_ID as it's argument and returns a pointer to the loaded
data. That's pretty much it. I was going to change it so
resman_register returned some sort of resource object which would be the
interface to that particular resource.
I can explain the workings in more detail if you wish.
Get latest updates about Open Source Projects, Conferences and News.