Question

I noticed an example for text rendering in the OpenTK documentation, but is there a library that has already been developed for this purpose? I am looking to use this for a video game, so it does need to be as performant as possible.

Was it helpful?

Solution

OpenTK used to have a very good TextPrinter class included. It's still there, but it's deprecated now, so it resides in the OpenTK.Compatibility DLL (which is included in the main installation). They deprecated it because they didn't want to maintain it anymore, I think. If they ever drop it from OpenTK, you'll be able to take the code from its last release and maintain it yourself.

OpenTK's TextPrinter works fine in my projects.

OTHER TIPS

Well, there's OpenTK.Text but it is easier to just use System.Drawing to render text to an image and render that as described in the documentation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top