www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/03/19:05:35

From: "CORNU.Nicolas" <CORNU DOT Nicolas AT wanadoo DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: probelem with ALLEGRO BITMAP in a typedef structure
Date: Sat, 3 Apr 1999 01:50:10 +0200
Organization: Wanadoo - (Client of French Internet Provider)
Lines: 32
Message-ID: <7e3l97$bol$1@platane.wanadoo.fr>
NNTP-Posting-Host: meaux11-182.abo.wanadoo.fr
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

i use a struct with allegro bitmap
when i drw a pic into sprite_def no errors
when i draw it onto the screen, no pic.

typedef struct vehicule_model
{
  char type[19];
  char nom[19];
 dimension dim;
 dimension pos;
BITMAP *sprite_def;
BITMAP *sprite_rot[31];
} vehicule_model;

in main:
...
vehicule_model car;
blit("a pic", car.sprite_def,0,0,0,64,64);
blit(car.sprite_def, screen,0,0,100,100,64,64);

no pics

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 -


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