Merge 2 Sdl_surface ?


JyCet

Member
Joined
Feb 23, 2004
Messages
469
Age
118
Location
France
Website
Visit site
Hi all,

I search how to merge 2 SDL_surface in another tempary SDL_surface.

SDL_Surface *lcd
SDL_Surface *bmp1 // bg without transparency
SDL_Surface *bmp2 // fg with transparency
SDL_Surface *tmp //merging surface

The idea is:
before a loop
- copy bmp1 in tmp without transparency
- copy bmp2 in tmp with transparency
in a loop
- copy tmp in lcd without transparency to see it

Today I use:
in a loop
- copy bmp1 in lcd without transparency
- copy bmp2 in lcd with transparency

Any idea or solution ? :D

Thanks
JYCET
 
Back
Top