Re: [AD] getpixel conflict with alpha blended sprites

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Mon, Nov 17, 2003 at 12:19:20PM +0100, Sven Sandberg wrote:
> So, if I wanted to read an entire pixel, including the alpha channel, 
> how would I do that?

We could add a seperate get_pixel_alpha() function?
IMHO though, the fix would be to expose the cipping rectangle detection, ie,
add a function that returns TRUE or FALSE depending on wether a point falls
within the clipping rectangle and have the value of get_pixel() be undefined
whenever that happens.
This is probably undoable because it breaks the API though... :(

Evert




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/