WPF 中的 OpenGL 控制 - 如何? [英] OpenGL control in WPF - how to?
问题描述
我需要在我的 WPF 项目中使用 OpenGL.我希望它的安装尽可能简单,但我开始失去希望.
I need to use OpenGL in my WPF project. I'd prefer it to be as simple in installation as possible, but I'm beginning to lose hope.
我已经尝试过 SharpGL:它非常好用且易于使用,但它存在大量内存泄漏并且应用程序在几秒钟后崩溃.不是很有用.
I've tried SharpGL: it's pretty good and easy to use, but it has massive memory leaks and the app crashes after few seconds. Not very useful.
所以现在我想知道:这个库有替代品吗?实际上我不必使用 OpenGL - 我只需要以任何技术呈现 3D 场景..也许 D3D 或其他东西在 WPF 中更容易管理...
So now I am wondering: is there an alternative to this library? Actually I don't have to use OpenGL - I just need to present a 3D scene in any technology .. perhaps D3D or something else will be easier to manage in WPF...
你有什么推荐?
亲切的问候
问.
更新:是的,我在 Windows 7 下工作.我真的更喜欢 smt.基于 OpenGL,因为我已经了解该技术.
Update: Yes, I'm working under Windows 7. And I'd really prefer smt. OpenGL based because I already know the technology.
推荐答案
我已经成功使用了 OpenTK 库 (http://www.opentk.com/).
适用于 WPF/Windows 窗体.
I have used successfuly OpenTK library (http://www.opentk.com/).
Works with WPF/Windows Forms.
这篇关于WPF 中的 OpenGL 控制 - 如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!