Unfortunately, SDL does not support it at this point. Instead, you can use
SDL_RenderSetTarget() etc. Or you can create a SDL_Surface and then do
SDL_CreateTextureFromSurface etc.On Tue, Sep 4, 2012 at 8:33 AM, wahono sri wrote:
I still learn the concept of SDL 2, AFAIK, only SDL_Surface is drawing
layer which independent from a SDL_Renderer?
Or SDL_Texture could be replacement of SDL_Surface for hardware
acceleration? If yes, it contrast with multiple windows that supported
by SDL 2, because SDL_Texture creation should depend on a
SDL_Renderer, than how to transfer SDL_Texture between windows?
IMO, SDL_Texture creation should be independent from a SDL_Renderer,
so that all drawing object are hardware accelerated.
My purpose is create some forms in my app with a SDL_Renderer in every
form, and create some independent bitmap, and this bitmap in free to
be paint in some form. My confusing is for bitmap, should I use
SDL_Renderer (SDL_RenderSoftware) of use SDL_Texture?