Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » (AL5) Drawing rotated text?

This thread is locked; no one can reply to it. rss feed Print
(AL5) Drawing rotated text?
jmasterx
Member #11,410
October 2009

I was wondering if AL5 had a way to draw rotated TTF text since I think the glyphs are cached to a bitmap. I know that it can be rendered to a transparent bitmap then rotated but I was wondering if maybe there was a simpler solution? Maybe AL5.1 could have al_draw_rotated_text which would work similarly to bitmap rotation?

Thanks

Thomas Fjellstrom
Member #476
June 2000
avatar

You have two options I think, draw to another bitmap and rotate that, or use the Transformations api.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Go to: