Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  JOGL curve based text renderer  (Read 840 times)
0 Members and 1 Guest are viewing this topic.
Offline Rejechted

Full Member
**

Posts: 119
Medals: 1


Just a guy making some indie games :D


« on: 2011-10-24 14:34:28 »

Hello,

Does anyone have experience with getting the new curve based text renderer to work?  We'd like to get around the limitations of the AWT renderer (the inability to change font/fontsize without using a separate TextRenderer instance, to name one).  There's almost no documentation and examples of the new system are sparse.  Wondering if anyone has any simple, working examples using this new system.

Blog for our project (Codenamed Lead Crystal): http://silvergoblet.tumblr.com
Offline gouessej

JGO Kernel
*****

Posts: 3560
Medals: 30


TUER


« Reply #1 on: 2011-10-24 16:51:08 »

Hi

Sven plans to add a step-by-step tutorial to explain how to use the new text renderer. The legacy renderer is enough if you don't target embedded platforms despite its limitations.

Edit.: You can find an example here:
https://github.com/sgothel/jogl/blob/master/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneNewtDemo02.java

Julien Gouesse
Offline Rejechted

Full Member
**

Posts: 119
Medals: 1


Just a guy making some indie games :D


« Reply #2 on: 2011-10-25 00:17:20 »

Thanks,

For now I can stick with AWT as we are working strictly in 2D and it already is set up nicely to do a black outline around the text.  Mainly the switch would be a convenience factor as now we need to maintain a map of TextRenderers for various fonts/sizes, along with an enum for each.

Blog for our project (Codenamed Lead Crystal): http://silvergoblet.tumblr.com
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.09 seconds with 21 queries.