Re: Can anyone provide an example of how to use com.jogamp.graph.curve.opengl.TextRenderer
Posted by lukej on May 09, 2012; 1:22pm
URL: https://forum.jogamp.org/Can-anyone-provide-an-example-of-how-to-use-com-jogamp-graph-curve-opengl-TextRenderer-tp3968662p3974103.html
So I wasn't actually getting a crash (though I've seen the issue you are talking about on the older ATI cards). My vertex array was just getting messed up and things weren't displaying where they should be. I have tracked it down and I figured out that it was because I was not calling glVertexAttribPointer before every glDrawElements. I was just calling it once after every glBufferData.
For some reason on NVidia hardware, this wasn't a problem, but on ATI hardware I have to call glVertexAttribPointer again before every glDrawElements when I use the TextRenderer. My guess is that this is a property that gets push'd/pop'd on NVidia hardware and not on ATI hardware, probably due to some ambiguity in the OpenGL specification.
I would still like to know how the other TextRenderer class works though, especially if it performs better. It's in the code base, why not have an example showing how to use it, right?
Thanks!
Luke