Mail Archives: djgpp/1999/06/06/11:28:22
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 -