Qbasicnews.com
December 15, 2018, 06:18:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: SDL_ttf Tutorial Request  (Read 4291 times)
Endevor
New Member

Posts: 11


« 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
Logged
stylin
Ancient QBer
****
Posts: 445


« Reply #1 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.
Logged

stylin:
Endevor
New Member

Posts: 11


« Reply #2 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!