Re: [AD] v/h flip for draw_lit/trans |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] v/h flip for draw_lit/trans
- From: Elias Pschernig <elias@xxxxxxxxxx>
- Date: Wed, 07 Mar 2007 12:31:55 +0100
On Tue, 2007-03-06 at 22:17 -0500, Jon Rafkind wrote:
> >
> So attached is a patch that does just that. It provides draw_sprite_ex,
> draw_sprite_h_flip_ex, draw_sprite_v_flip_ex, draw_sprite_vh_flip_ex.
> The x11 port also takes care to wrap these functions with its standard
> in_gfx_call stuff. I have not fixed the accelerated functions in qnx,
> win32, or i386. Can the i386 code be totally ignored now?
I think the asm code is still used by default if possible.. but not
really sure.
> One caveat about my patch is 8-bit depth will not work properly because
> I did not want to pass a color parameter when drawing lit sprites so I
> added a new macro, DLSX_BLEND that uses the global _blender_alpha like
> DTS_BLEND. The rest is straight forward I think.
>
> I was going to hack exsprite too but I notice it uses 8-bit. Perhaps an
> upgrade is in order?
Or a new example for blended sprites.
--
Elias Pschernig