cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/22/07:16:30

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: DATAFILES
Date: Sun, 22 Mar 1998 10:21:09 +0000
Organization: None
Message-ID: <ILdx2AAVYOF1EwlZ@talula.demon.co.uk>
References: <wp4jMmu00YUp0mGFk0 AT andrew DOT cmu DOT edu>
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019