CampaignWizard
CampaignWizard

Reputation: 838

OpenTK based/compatible text rendering library

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.

Upvotes: 0

Views: 3089

Answers (2)

Stefan Monov
Stefan Monov

Reputation: 11732

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.

Upvotes: 1

Tom Savage
Tom Savage

Reputation: 3182

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.

Upvotes: 1

Related Questions