delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/17/13:13:54

Message-ID: <38834DB9.C92B4DC8@tiscalinet.it>
Date: Mon, 17 Jan 2000 18:13:29 +0100
From: Night Walker <night DOT walker AT tiscalinet DOT it>
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: ALLEGRO: Fast Palette Changing
Reply-To: djgpp AT delorie DOT com

I must switch between palette tables quite fast: i must draw 8bpp
RLE_SPRITE on a truecolor screen, and each sprite has different palette.

I messed around with Allegro SRC but I found set_pallete() quite
confusing.
Passing entire arrays (the PALLETE type) by value as function parameters
is not slow/unefficent? or are they automatically passed by reference?
There is a way to simply redirect a pointer to a PALLETE table, thus
changing palette with only an assignement "="?
This will let me use blender maps/funx for transparency?
How can I learn to use them (about this topic  ALLEGRO.TXT is not very
clear for a newbie)

Thanx.


- Raw text -


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