I want to draw some text on JOGL GLCanvas , But I don’t know how to operate it.
So, can somebody give some suggestions or some stable code ?
TextRenderer is your friend :)!
See http://download.java.net/media/jogl/builds/nightly/javadoc_public/.
Thank you ! But I saw NeHe tutorials 17th which offered a method using 2D image
for rendering text. I think that may be efficient.But when I operated *.bmp image for rendering,
I got an Exception .
Actually, TextRender does the thing for you.
So unless you want to use some fancy fonts, I higly recommend you to use TextRenderer.
It creates the quad, the texture, apply blending and is optimized for text display.
The only limitations of TextRenderer is apparenlty that is does not behave well in combination with VBOs.