Mail Archives: djgpp/1998/03/22/07:16:30
James W Sager Iii writes:
>I am just curious. In the notes I have about Allegro,
>it states DATAFILES load into memory. Is there some
>way to have them act similarly to regular files, and only
>load specific items into memory as needed?
You can use the load_datafile_object() function if you only want to
extract a particular part of the information.
>Or do they already act that way?
To some extent they will because djgpp is a virtual memory environment,
but this is very much at the whim of the DPMI server so it probably
isn't a good idea to place too much reliance on it. A better solution
would be to put all the graphics you need for each level into a
different datafile, merge all these datafiles into one large file, and
then use load_datafile_object() to fetch in the child datafile for each
level as it is required.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -