Re: Which JOGL TextRenderer should I use?
Posted by
GiGurra on
Jul 26, 2011; 2:09pm
URL: https://forum.jogamp.org/Which-JOGL-TextRenderer-should-I-use-tp3199861p3200433.html
Thanks a lot! :).
Do you also have some code example with it? Like helloworld-ish? :)
I checked your links but my eyes could not spot anything, and one of the links seems to be down (
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextNewtDemo01.java;h=b9a04549816e9707e04a8b592fe77bdfefa9069d;hb=HEAD)
Like, I have no idea what I'm doing here and I've never worked with shaders type of thing ^^- I tested with the following during my gl listeners init callback:
final ShaderState shaderState = ShaderState.getShaderState(backing_gl); // backing_gl is my GL2 interface
System.out.println(shaderState);
final Factory factory = new Factory();
System.out.println(factory);
final RenderState renderState = RenderState.createRenderState(shaderState, factory);
System.out.println(renderState);
final com.jogamp.graph.curve.opengl.TextRenderer tr = com.jogamp.graph.curve.opengl.TextRenderer.create(renderState, 0);
but the shaderstate I get is null :P. I'm guessing this is the completely wrong way to do it ^^