delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/13/03:56:48

Newsgroups: comp.os.msdos.djgpp
Subject: Re: Using bitmaps in Allegro
Message-ID: <361E6528.34B2A692@camtech.net.au>
From: Adam Dayman <adayman AT camtech DOT net DOT au>
Date: Sat, 10 Oct 1998 05:04:00 +0930
References: <01bdf21a$953398a0$2947f482 AT s-64584>
Organization: Camtech Internet Customer
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
NNTP-Posting-Host: dialup-ad-15-28.uni.camtech.net.au
X-Trace: 10 Oct 1998 04:57:50 +0950, dialup-ad-15-28.uni.camtech.net.au
Lines: 24
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

BITMAP* new_bitmap

I would belive that it would be in this order.
Try looking in allegro.txt (located in allegro directory)

allegro_init();
set_gfx_mode(......);   // set the graphics mode
BITMAP* new_bitmap
new_bmp=create_bitmap(...);
new_bmp = load_bitmap(...);
blit(.....);

Tarad wrote:

> I can't get it to work.
> Lets say I have this file _file_.bmp and I want to load it and draw it on
> my screen(or a screenbuffer or another bitmap) which functions need to be
> called (and in what order). I'm very newbie but I really like to learn and
> I chosed Allegro after several tries making an own library for graphics.
> And it's mode 13h.
> Thanks.



- Raw text -


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