delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/28/03:30:25

From: "Ethan Giordano" <lostreality AT geocities DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ALLEGRO BITMAPS AND DATAFILES
Date: Sun, 26 Oct 1997 09:51:22 -0500
Organization: Cybernex Inc.
Lines: 14
Message-ID: <62vlcg$dot$1@news.cybernex.net>
References: <62sva7$fbd$1 AT news DOT cybernex DOT net> <62u1s5$a47$1 AT reggie DOT win DOT bright DOT net>
NNTP-Posting-Host: 207.198.146.91
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

i did load the dat file but didn't post to spare the obvious. i can call
draw_spite passing (screen, data[0].dat, 100, 100) and it works fine.
however for the nature of my project, having the draw routine draw the
bitmaps right fron the dat file is unreasonably slow. that is why i wanted
to load them all in at one point and then use them repeatedly.

for now i am just puting a slew of bmps in a dir and loading them all
individually, but for a finished product the filesize and cluster of files
like that is not feasible. could you post a working example of loading a bmp
from a dat file into a global BITMAP* array.

thanks in advance


- Raw text -


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