[SDL] SDL2 + OpenGL+ SDL_ttf and rendering text question
Chris Bush
chrbsh at gmail.com
Sat May 26 08:49:56 PDT 2012
It's neat. I like the prospective alignment feature. One might go in the
direction of creating something like a paragraph class that you can create,
position on the plane, set the typeface and kerning and so on, and fill and
refill with text. I think setting the color in the glyph drawing function
might not be optimal, since for a given input to DrawText you must pass and
set the colors to each letter. Anyway, it looks useful. Thanks for leaving
the credit.
Chris
On Sat, May 26, 2012 at 8:39 AM, Trev <trevor at lackeyccg.com> wrote:
> **
>
>
>
> Chris Bush wrote:
>
> Oh, yes... the function could be improved in many ways. However, you
> could just use glColor4f(r, g, b, a); prior to calling the
> write_left_aligned function. The color will be as set without needing to
> reload the textures.
>
>
>
> I tried my hand at making the code more easy to use. I appreciate
> suggestions for improvement.
> http://forums.libsdl.org/viewtopic.php?t=8194
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120526/0e5013b2/attachment.htm>
More information about the SDL
mailing list