www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Gnurfos on December 12, 2010, 03:30:10 pm

Title: How to draw text ?
Post by: Gnurfos on December 12, 2010, 03:30:10 pm
Hi,

Is there a simple way to draw a text ?

Thanks
Title: Re: How to draw text ?
Post by: EgonOlsen on December 12, 2010, 09:45:23 pm
If the text is static, use a texture and blit it using the methods in FrameBuffer. If it's dynamic, you can either use the same approach but blit single characters or simply use raft's classes for this (which is what i recommend), that can be found here: http://www.jpct.net/forum2/index.php/topic,1074.0.html (http://www.jpct.net/forum2/index.php/topic,1074.0.html)
Title: Re: How to draw text ?
Post by: Gnurfos on December 13, 2010, 07:52:28 am
Thanks for your reply.
However, I am working on the Android version (and posted on the wrong forum, hum). Will this still work ? I see it uses awt.
Are there plans to include such a feature in the main engine ?
Title: Re: How to draw text ?
Post by: EgonOlsen on December 13, 2010, 10:10:53 am
It's available for Android too. Just have a look in the Android section...it can be found there somewhere.
Title: Re: How to draw text ?
Post by: Gnurfos on December 13, 2010, 10:57:06 pm
Thanks I found it (http://www.jpct.net/forum2/index.php/topic,1563.0.html).
And it works great. Why don't you include it in the main engine ? This seems like a basic feature.