loading graphics from ram

BlitzMax Forums/BlitzMax Programming/loading graphics from ram

necky(Posted 2005) [#1]
Is it possible to use the ram on your PC to hold graphic files.
When I need a new set of graphics I can then quickly load them from ram instead of from the harddrive.
I`ve not used the incbin function yet but I`m wondering if this is the way to go about it.


Perturbatio(Posted 2005) [#2]
take a look at a bankstream


Robert(Posted 2005) [#3]
IncBin is probably what you are after.

The Load functions (LoadImage, LoadSound etc.) accept streams as well as filenames in the argument, which means that you can load media from the hard drive, the web, RAM, or from any other source which you have a TStream object for.

The easiest solution for your needs would probably be IncBin.


DH(Posted 2005) [#4]
Nope, I think he's talking about bankstream