[SDL] SDL2 + OpenGL+ SDL_ttf and rendering text question
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
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.
> SDL mailing list
> SDL at lists.libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL