Re: Text Rendering to JOGL2
Posted by
Sven Gothel on
Dec 28, 2011; 9:16pm
URL: https://forum.jogamp.org/Text-Rendering-to-JOGL2-tp3617263p3617338.html
On Wednesday, December 28, 2011 09:34:44 PM tami [via jogamp] wrote:
>
> I am desperate here. I am a casual JAVA/JOGL programmer, since my main
> programming responsibilities are in other languages. However, I have
> developed a java/jogl application that will be useful to my clients in a
> relatively small amount of time.
>
> Recently, I realized I must port it to JOGL2 and I did that pretty easily,
> got the javaws working and all was well except for text rendering.
>
> I have now spent a ridiculous amount of time trying to figure out how to
> render a word to an opengl frame. It seems like you need a shader, a shader
> program, a render state, etc., etc. What used to take 5 lines of code now
> seems like it will take I don't know how many lines!! Please help.
Maybe you like to use the 'old' text renderer until
we have reviewed and enhance the API for the new one
and since it seems to be too complicated for your case.
Nevertheless, setting up the RenderState etc is a simple
'few line' experience if nothing else but rendering text is desired.
See the UIShape impl. etc.
We hope that an upcoming review can simplify and clarify those steps
and to find the balance between flexible/generic and simple.
~Sven