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