Re: Text Rendering to JOGL2
Posted by
Sven Gothel on
Dec 28, 2011; 10:05pm
URL: https://forum.jogamp.org/Text-Rendering-to-JOGL2-tp3617263p3617434.html
On Wednesday, December 28, 2011 10:38:46 PM tami [via jogamp] wrote:
>
> Hi Sven,
>
> By UiShape impl, do you mean this guy?
>
>
>
http://jausoft.com/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/graph/demos/ui/UIShape.java;h=7e3d267750031b9d20e8bee0000ff5f2a87bfd52;hb=4ccf5ed0cc14743a3a97d7b0dcc61e839d263a1aWell, this one is the base class for our experimental UI stuff .. yes.
http://jausoft.com/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java;hb=HEAD#l151Shows how you can 'simply' render the FPS to the screen.
Since these 'graph' demos are complicated, ie. use a lot of OO stuff
and since many people requested a more simple demo,
I will write smaller ones - probably when starting the review of our API.
I can't tell when I can do it, but probably before mid January,
depends on other work items.
>
> I'd really like to stick with JOGL2. Is there some simple example out there
> that has a GL2 canvas and then renders something to it in 3d?
>
This test is using the old AWT and 'bitmapped' based text renderer:
http://jausoft.com/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/awt/text/TestAWTTextRendererUseVertexArrayBug464.java;hb=HEAD~Sven