From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro: DATAFILES Date: Sun, 22 Mar 1998 10:21:09 +0000 Organization: None Message-ID: References: NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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