Login  Register

Re: Where did graph.curve.opengl.TextRenderer go ?

Posted by Lili on Jun 09, 2015; 3:56pm
URL: https://forum.jogamp.org/Where-did-graph-curve-opengl-TextRenderer-go-tp4034611p4034624.html

I got it to work with enabled depth test somehow.
Now I added another 2D object to my scene that uses my shaders.
I can't figure out how to make both the text and the other 2D object to show up. With the old text render I used gl.glUseProgram(shaderState.shaderProgram().program()) and gl.glUseProgram(myOwnProgram) to switch back and forth. However, it doesn't work now. RenderState.IsShaderProgramInUse() give me FALSE. I don't understand what program to use.