It is currently Wed Jul 06, 2011 8:22 pm

All times are UTC - 8 hours




 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Static text drawing?
PostPosted: Thu Mar 10, 2011 5:19 pm 

Joined: Sun Feb 27, 2011 11:32 am
Posts: 71
Is there an API for drawing static text? I don't want to create new PWidgetTextDynamic objects for everything that my code draws on screen since there does not seem to be a way to destroy them; I'd really like something closer to printf() or even puts() that takes an X/Y coordinate and a font description and renders the text there.


Offline
 Profile  
 
 Post subject: Re: Static text drawing?
PostPosted: Fri Mar 11, 2011 1:44 pm 

Joined: Tue Feb 15, 2011 10:35 pm
Posts: 42
Unfortunately that is the only method for drawing text in the current SDK. There is also a built in printf() but outputs text to the screen as if it were a console. You can define a global PWidgetTextDynamic object and re-init/re-render it with different text, fonts, colors instead of creating a new one each time.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: