OpenTK based/compatible text rendering library
I noticed an example for text re开发者_JAVA百科ndering 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.
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.
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.
精彩评论