www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/25/18:16:41

From: James W Sager Iii <sager+@andrew.cmu.edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Quick question.
Date: Wed, 25 Mar 1998 15:17:38 -0500
Organization: Junior, MCS Undeclared, Carnegie Mellon, Pittsburgh, PA
Lines: 19
Message-ID: <0p6KNWK00YUs0LeXk0@andrew.cmu.edu>
NNTP-Posting-Host: po6.andrew.cmu.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I now have datafiles loading my graphics for my game.
Its possible to load arrays of graphics using the load_datafile_object
because I can pass strings as an argument.
<psuedo-code>

for(i=0;i<array_max;i++){
convert i into a string;
load a datafile object based on this string
save it to a bitmap
}

And that works fine.  Unfortunately as array_max becomes large,
the time taken to load up all the images becomes noticable(yes I am
using compression method 1)

I was wondering if there is a way to load up a single datafile,
and strip individual arrayed objects from it, or can this simply
not be done with this version?

- Raw text -


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