delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/10/15:15:35

From: cyber_s AT my-dejanews DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: BitMap Address
Date: Thu, 10 Sep 1998 18:08:22 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 23
Message-ID: <6t94il$h2i$1@nnrp1.dejanews.com>
NNTP-Posting-Host: 155.83.190.204
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi all,

  A guy I work with wants me to do the following:

" To optimize the project, I need this: every bitmap will be 128x128 pixels. 
I need them to be packed in memory 4 of them in a 64K chunk.  The first
bitmap in the group will be at a 64K aligned address, so that the 32bit
pointers will look like this in hex ( xxxx0000 - address of first pixel in
1'st bitmap)  (xxxx0010  - address of first pixel in 2'nd bitmap)  (xxxx1000 
- address of first pixel in 3'rd bitmap)  (yyyy0000  - address of first pixel
in 4'th bitmap) "

Is this even possible.	The screen will be 640x480x8.  So if I read my
documentation correctly, if we used 16, 24, or 32 bit,	the bitmaps will not
be aligned in memory in the first place. We are using Allegro, but I can't
find anyway to load a bitmap at a specific address.  So I would like to know
if the above is possible, and if it is, where should I start looking.  I an
clue-less, Thanks

cyber_s

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

- Raw text -


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