Page 1 of 1

Loading surfaces from memory

PostPosted: Feb 24, 2003 @ 8:37pm
by CpuWhiz105

PostPosted: Jun 11, 2003 @ 7:52pm
by CpuWhiz105
No one ever answered my question, but I figured it out anyway. Finally got this working. If you lazy people want to know how I did it, just let me know.

PostPosted: Jun 11, 2003 @ 8:26pm
by warmi
Perhaps not exactly the same issue but , personally, I switched to using PhysFS which is like a virtual file system.
Basically you can create a single ( or multiple ) zip file containing all your images, data files etc and access it from your application as if this stuff was located on the filesystem.
This is a free (lgpl) software and according to the author, the design was somewhat inspired by Quake 3's file subsystem.

http://www.icculus.org/physfs/

This code compiles out of the box with VC++ - it does take a bit of tweaking to get it working with EVC ( if anyone is interested I do have a working dll/lib combo for arm arch.)

PostPosted: Jun 11, 2003 @ 11:16pm
by CpuWhiz105

PostPosted: Jun 12, 2003 @ 4:09am
by warmi
You will find both X86 and ARM dll/lib files as well as physfs.h at http://www.warmi.net/pocketpc/files/Physfs_ppc.zip

More info about this library can be found at http://www.icculus.org/physfs/ ( which unfortunately seems to be down at this point but I am pretty sure it is only temporary problem since I was able to access the site couple of days ago.)

PostPosted: Jun 12, 2003 @ 4:11am
by CpuWhiz105
Thanks warmi, I hope it will be back up soon.