[SDL] Making hardware surfaces
Brian
brian.ripoff at gmail.com
Thu Jul 12 03:58:01 PDT 2007
Hi.
Don't put surfaces with alpha channels in video memory. AFAIK SDL
cannot handle alpha blits in hardware, so all you end up doing is
making more work by forcing SDL to copy the surface back to system
memory during blits.
-- brian
On 12/07/07, Patricia Curtis <patricia.curtis at gmail.com> wrote:
> Hi Guys
> I am using image load IMG_Load() and then SDL_DisplayFormatAlpha()
> to load my pngs, but i have just realized that the surfaces may not be in
> video memory, so how can i simply make them load to graphics/video memory if
> there is space and if not then normal memory.
>
> I hope this makes sense. i would say thank you in advance, but i am truly
> grateful for all of your time and trouble in doing SDL in the past, so for
> the present Thanks a million.
>
> Tirsh xxxx
More information about the SDL
mailing list