delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/06/11:28:22

Message-ID: <375A93E8.9F1AD4A9@pmail.net>
Date: Sun, 06 Jun 1999 17:29:44 +0200
From: Fredrick Backman <fredrick DOT backman AT pmail DOT net>
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: allegro and bitmaps
References: <7jdqdd$3hn$1 AT news1 DOT skynet DOT be>
Reply-To: djgpp AT delorie DOT com

Here's what the Allegro documentation says. If you need more details please
refer to the documentation and the Allegro examples which you probably
installed on your pc.

Online docs:
http://www.freeweb.org/computer/poletti/allegro/Allegro.htm

x256 wrote:

> 1) how can i just show a simple bmp file on the screen (with djgpp and
> allegro)

void blit(BITMAP *source, BITMAP *dest, int source_x, int source_y, int
dest_x, int dest_y, int width, int height);

Copies a rectangular area of the source bitmap to the destination bitmap.
The source_x and source_y parameters are the top left corner of the area to
copy from the
source bitmap, and dest_x and dest_y are the corresponding position in the
destination bitmap.

>
> 2) how can i get text on the screen when i'm not in text mode but in vga
> mode ?

void textout(BITMAP *bmp, FONT *f, unsigned char *s, int x, y, int color);

Writes the string s onto the bitmap at position x, y, using the current text
mode and the specified font and foreground color. If the color is -1 and a
proportional font
is in use, it will be drawn using the colors from the original font bitmap
(the one you imported into the grabber program), which allows multicolored
text output.

--
Fred Backman
Lead Wizard
Binary Spells
www.femmefetish.com/games/

- Raw text -


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