Re: Renderering text onto another textures with alpha blending

David Olofson <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <CAAcqxQoxjwH_q3=x1GO8vUHudFX_wAVnhP2dFHJ6sTdLH5VmOg@mail.gmail.com>
I believe the dark edges come from 'blendedTexture'. To generate an RGBA
texture with "pure" edges, you need to make sure all pixels have the
correct (text) color - even the invisible ones. So, that texture needs to
be the same color as the text, or you have to prepare the texture in some
other way. Otherwise, colors bleed into the edges through the antialiased
edges of the text.​

_______________________________________________
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.