基于 OpenTK/兼容的文本渲染库

发布于 2024-10-09 12:23:54 字数 76 浏览 0 评论 0原文

我注意到 OpenTK 文档中有一个文本渲染的示例,但是是否已经为此目的开发了一个库?我希望将其用于视频游戏,因此它确实需要尽可能高性能。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

红玫瑰 2024-10-16 12:23:54

OpenTK 曾经包含一个非常好的 TextPrinter 类。它仍然存在,但现在已被弃用,因此它驻留在 OpenTK.Compatibility DLL 中(包含在主安装中)。我认为他们弃用它是因为他们不想再维护它了。如果他们从 OpenTK 中删除它,您将能够从其最新版本中获取代码并自行维护。

OpenTK 的 TextPrinter 在我的项目中运行良好。

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.

二货你真萌 2024-10-16 12:23:54

嗯,有 OpenTK.Text,但使用 System.Drawing 将文本渲染到图像并渲染如文档中所述

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文