Re: Renderering text onto another textures with alpha blending

"stewambo" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Thanks for the hint. After experimenting a bit I found out that using SDL_RenderClear with the color of the text worked like a charm. So just insert the following after setting the render target to the texture:

Code:

SDL_SetRenderDrawColor(renderer, 255, 0, 0, 0); //should be the color of the text
SDL_RenderClear(renderer);

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.