hi all,
we are trying to shift our old SDL 2D framework to SDL 2.0, now we will use SDL_renderer and SDL Texture instead of the old SDL_Surface, but
our screen transition is done thru fade-in/out of the main SDL_Surface.
Now since the main render surface is represented by the SDL_Renderer taken from the Window, how can we do our fade in/out transition where it seem that the SDL_Renderer structure does not have a mechanism to manipulate the alpha of that surface.
my options are,
1. rendered the scene to a texture and manipulate the alpha of that texture BEFORE rendering the texture to the SDL_Renderer, which is an extra overhead process.
2. render a black rect on top of the scene that draws from alpha 0 to 255 (full) opacity to simulate fade.
what is the best option you guys can suggest?