Qbasicnews.com
SDL_ttf Tutorial Request - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+--- Thread: SDL_ttf Tutorial Request (/thread-10244.html)



SDL_ttf Tutorial Request - Endevor - 01-11-2010

Can anyone post a tutorial or post a link to a tutorial that explains how to print text on a SDL surface at a designated location? Thanks


Re: SDL_ttf Tutorial Request - stylin - 01-12-2010

The [tt]examples[/tt] folder in the distribution has a few SDL examples, including:
http://fbc.svn.sourceforge.net/viewvc/fbc/trunk/FreeBASIC/examples/libraries/SDL/ttf.bas?revision=4132&view=markup

Hope this helps.


Re: SDL_ttf Tutorial Request - Endevor - 01-12-2010

thanks, this does. My next goal is for the text to wrap around in a certain area. I have ideas on how to do that with FB string manipulation. Do you know if there is any slick way of doing that with SDL or FB? I'm curious if there is a hexicode or something I can insert in the string that will cause a return. If you can think of anything, let me know, thanks