Mail Archives: djgpp/1999/04/08/15:35:34
From: | "James Bunting" <james AT aic DOT co DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
References: | <7eiamo$4od$1 AT wanadoo DOT fr>
|
Subject: | Re: problem: allegro BITMAP struct
|
Date: | Thu, 8 Apr 1999 19:22:28 +0100
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211
|
NNTP-Posting-Host: | warp8-135.enta-net.co.uk
|
Message-ID: | <370cf69a.0@energise.enta.net>
|
X-Trace: | 8 Apr 1999 19:34:02 -0100, warp8-135.enta-net.co.uk
|
Lines: | 43
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
err something like this may work OK.
void CopyTheBitmaps( vehicule_model* vm)
{
if(( vm->bitmap2 = create_bitmap( vm->bitmap1->w, wm->bitmap1->h)) ==
NULL)
return 0; // error
blit( vm->bitmap1, vm->bitmap2, 0, 0, 0, 0, bitmap1, bitmap2);
return 1; // ok
}
CORNU.Nicolas <CORNU DOT Nicolas AT wanadoo DOT fr> wrote in message
news:7eiamo$4od$1 AT wanadoo DOT fr...
> How i can use a function (in other .c file) to work with allegro bitmap
> struct
> like that
>
> typedef struct vehicule_model
> {
> BITMAP *thing1;
> BITMAP *thing1;
> }
>
> i want the function to copy the first bitmap thing1 to thing2.
>
>
> thanks
>
> --
> CORNU Nicolas
> E-mail: CORNU DOT Nicolas AT wanadoo DOT fr
> ICQ: 31463000
> Homepage: http://perso.wanadoo.fr/nicolas.cornu/Index.htm
>
>
- Raw text -