Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » [al5]Drawing text line by line rather than char by char?

This thread is locked; no one can reply to it. rss feed Print
 1   2 
[al5]Drawing text line by line rather than char by char?
jmasterx
Member #11,410
October 2009

It might also be faster if you allow the user to give a char* to a utf8 encoded c string, and then let them provide indexes. I use utf8 encoded std strings which work nice with char*

another option might be to provide a version of draw_text that also takes in an ALLEGRO_COLOR* which would be assumed to span the length of the text. This would probably be faster than the current solution.

 1   2 


Go to: