www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/17/12:50:49

From: arganoid AT fatal-design DOT com (Andrew R. Gillett)
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro 3.1 - changes to sprite routines?
Date: Sun, 17 Jan 1999 17:47:23 -0000
Organization: www.release-dates.co.uk
Lines: 29
Message-ID: <MPG.110c32361135996698a151@news.freeserve.net>
NNTP-Posting-Host: modem-1.toothbrush.dialup.pol.co.uk
X-Trace: news4.svr.pol.co.uk 916595245 23253 62.136.124.1 (17 Jan 1999 17:47:25 GMT)
NNTP-Posting-Date: 17 Jan 1999 17:47:25 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: MicroPlanet Gravity v2.10
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

The code below draws a sprite which may either fade in, resize until it 
reaches its full size, or rotates 360 degrees - or do a combination of 
those things.

However, since I got Allegro 3.1, the translucent and resizing effects 
have been upside-down, i.e. vertically flipped. None of the code has been 
changed, only the version of Allegro that I'm using.



clear_to_color (temp_bitmap, makecol(255,0,255));
clear_to_color (temp_bitmap_2, makecol(255,0,255));

draw_rle_sprite (temp_bitmap, (RLE_SPRITE*)datfile[draw_block].dat, 0, 
0);

rotate_scaled_sprite (temp_bitmap_2, temp_bitmap, 0, 0, angle, scale);

draw_trans_sprite (active_page, temp_bitmap_2, x_pos, y_pos);


If I skip rotate_scaled_sprite, it seems to work, which suggests there is 
a bug in rotate_scaled_sprite.

-- 
Andrew Gillett       http://argnet.fatal-design.com/      ICQ: See homepage
"No mustard? You dare to insult me with a mustard-less pizza? You will die
 for this!" - Michelangelo, Starship Losers

- Raw text -


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