Qbasicnews.com

Qbasic "like" compilers/interpreters => FB Discussion & Programming Help => Topic started by: Endevor on January 11, 2010, 12:56:38 AM



Title: SDL_ttf Tutorial Request
Post by: Endevor on January 11, 2010, 12:56:38 AM
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


Title: Re: SDL_ttf Tutorial Request
Post by: stylin on January 11, 2010, 05:38:53 PM
The examples 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.


Title: Re: SDL_ttf Tutorial Request
Post by: Endevor on January 11, 2010, 05:46:44 PM
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