[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
drawing a string using SDL
- To: linuxgames@sunsite.dk
- Subject: drawing a string using SDL
- From: Abhir Joshi <abhir@vsnl.net>
- Date: Wed, 17 Dec 2003 13:43:35 +0530
- Delivered-to: archiver@seul.org
- Delivered-to: mailing list linuxgames@sunsite.dk
- Delivery-date: Wed, 17 Dec 2003 03:11:45 -0500
- Mailing-list: contact linuxgames-help@sunsite.dk; run by ezmlm
- Reply-to: linuxgames@sunsite.dk
- User-agent: Mutt/1.2.5i
If I was using OpenGL with SDL, I could have used FTGL of GLTT to draw
strings with different font faces. But when I am not using OpenGL,
how do I draw a string onto the surface?
As of now, I blit BMP images containing the text. But the images need
to recreated using GIMP whenever the text is to be changed. What if I
want to print arbitrary text at runtime? Do I need to have a bitmap
for each and every character and then blit those bitmaps according to
the characters in the string? Is there some library already written
for this?
--
Abhir Joshi
http://education.vsnl.com/abhir/