JyCet
Member
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 ?
Thanks
JYCET
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 ?
Thanks
JYCET