[SDL] Sharing a surface
Brian Edmond
brian at cranksoftware.com
Sat Nov 17 09:14:24 PST 2007
Thanks for the info.
Why not use HW surfaces for blending? If the hardware can support a blit
with alpha then this would be accelerated. If the blit does not support
alpha then I see why you would not want to use a HW surface with a blend. I
suppose it depends on the particular implementation on the backend correct?
I will have to look to see if HW alpha is a capability you can query.
Thanks,
Brian
"Tim Goya" <tuxdev103 at gmail.com> wrote in message
news:ff70c5070711170842q6ede06ev175862f647ca7869 at mail.gmail.com...
> You can try allocating shared memory for the pixel buffer, then
> generate a SDL_Surface from it by calling SDL_CreateRGBSurfaceFrom.
> It isn't a HW surface, but you shouldn't use HW surfaces anyway when
> blending.
>
> Tim
More information about the SDL
mailing list