[SDL] LoadLibrary analogous function?

Jeff Duncan jeffery at altsoftware.com
Mon Aug 27 07:11:00 PDT 2001


On Monday 13 August 2001 21:44, William Kendrick wrote:
> On Sun, Aug 12, 2001 at 11:47:01PM +0200, Mattias Engdegård wrote:
> <snip>
>
> > You can always transform a 8bpp image with palette effects to a
> > greyscale 24-bit image (each pixel has equal R, G, B) and the gamma
> > ramps, but you can also do other interesting things
>
> One thing to realize when doing "palette-effect"-style effects is that
> true palette effects are much quicker, since the graphics hardware is
> doing all of the index look-ups as it draws the pixels.
>
> Duplicating effects like these using, say, 24bit truecolor mode means
> redrawing every changed pixel every frame, which can be dog-slow on
> older hardware.
>
> Unless there's something I'm missing. :)  I'm no PC expert.

Gamma is a hardware feature of the RAMDAC of most modern video cards. 
(One hardware LUT right before each DAC.) SDL can use it if the 
underlying target provides an API for it. (No idea about the support 
status, though.)


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------------> http://www.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> david at linuxdj.com -'




More information about the SDL mailing list