tags:

views:

356

answers:

0

I have a GLCanvas on which I want to render some text. I'm actually using a 3rd party library that extends GLCanvas and it is doing most of the GL rendering. The 3rd party tool allows you to display images on it, so I've been creating images of the text and displaying it on the GLCanvas.

That works, except the text doesn't really look to crisp (but if I write the image out to a file it does, so I suspect it has to do with using graphics.drawString on a GLCanvas, but I'm not sure). The 3rd party app gives access to the GL Object, but I only know the position of the text I want to render in x,y screen coordinates, so I'm not sure how to translate that to GL.

I've tried to access the GL Object but I get errors about not having an openGL context current on this thread. I understand what this means, I just don't know if I have access to the thread on which the GL context is running.

Any advice as to how to best render the text?

thanks,

Jeff