Drawing an SDL_Surface with SDL 1.3

Is there any way to draw an SDL_Surface using SDL 1.3 in non-legacy mode?

I know I can convert the surface to a texture and draw the texture, but
since the surface is being used for a streaming video that would mean
converting each from to a SDL_Texture on the fly and that could affect
performance.

I know that SDL 1.3 has a 1.2.x compatibility layer, but I need to draw my
video data onto my SDL_Window with something like SDL_RenderCopy().

Ken

SDL 1.3 compatibility layer is quite limited in the terms of performance -
when using SDL_Surface you’re always using software rendering functions, to
render to SDL video surface, then this surface is copied to texture and the
texture is output to screen using whatever renderer you have. And it’s
always software blitting, contrary to SDL 1.2 where you’ve got real HW accel
with SDL_HWSURFACE flag.

So it does not matter what method you’ll choose - it will anyway be copying
surface pixel data to texture and drawing the texture.On Sat, Oct 2, 2010 at 2:24 AM, Ken Rogoway wrote:

Is there any way to draw an SDL_Surface using SDL 1.3 in non-legacy mode?

I know I can convert the surface to a texture and draw the texture, but
since the surface is being used for a streaming video that would mean
converting each from to a SDL_Texture on the fly and that could affect
performance.

I know that SDL 1.3 has a 1.2.x compatibility layer, but I need to draw my
video data onto my SDL_Window with something like SDL_RenderCopy().

Ken


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org