We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
Qt 是一个非常好的 C++ 库,与 LGPL 许可兼容,其中包括一个基于 webkit 的小部件,支持 JavaScript。此外,作为脚本语言,Qt 使用与 C++ 紧密集成的 javascript(可以轻松编写 C++ 类并使其在 javascript 级别可见)。
Qt 是多平台的,并配备了高度复杂的 IDE。
Qt 目前没有使用 V8,但移植正在进行中,他们的目标是提供 100% 向后兼容的解决方案。
在我看来,Qt 唯一的“问题”是:
Qt is a very nice C++ library compatible with LGPL licensing that among other things includes a webkit based widget with javascript support. Also as scripting language Qt uses javascript with a tight integration with C++ (it's easy to write a C++ class and and make it visible at the javascript level).
Qt is multi platform and comes with an highly sophisticated IDE.
Qt is not currently using V8 but the porting is in progress and they aim at providing a 100% backward compatible solution.
The only "problems" of Qt are IMO that:
我想我来晚了一点,但我正在寻找类似的解决方案。我发现 node-canvas我不知道是否可以将其挂钩,以便将其呈现为类似 SDL< /a> 或 SFML 管理的窗口与否。
但出于我自己的目的,我将把我的代码移植到 C++ 并直接将 Cairo 与 SFML 一起使用和OpenGL。
I guess I'm a bit late here, but I'm searching for a similar solution. I found node-canvas and I do not know if it is feasible to hook that so it renders into something like an SDL or SFML-managed window or not.
But for my own purposes, I will port my code over to C++ and use Cairo directly with SFML and OpenGL.
有趣的想法 - 另一种可能性是使用 Adobe Air,并通过 StageWebView 和 Flex 4 渲染游戏。如果您感兴趣,这里有一些使用该东西的示例代码:
https://github.com/JustinBeckwith/frink/blob/master/frink-flex/src/controls/WebBrowser.as
Interesting idea - another possibility is using Adobe Air, and rendering the game via StageWebView and Flex 4. Here's some example code for using the thing if you're interested:
https://github.com/JustinBeckwith/frink/blob/master/frink-flex/src/controls/WebBrowser.as
我有一个有趣的项目使用 id FireBreath(firebreath.org)。这并不完全是您正在寻找的,但在某些方面它会让您接近。 Firebreath 允许用 C++ 创建浏览器插件。 Firebreath 的功能之一是它允许您从浏览器插件中的 C++ 访问和修改 DOM,以及在 C++ 中创建可以从页面上的 JavaScript 访问的方法和属性。
An interesting Project that I have uses id FireBreath(firebreath.org). This is not exactly what you are looking for, but in some ways it would get you close. Firebreath allows the creation of browser plugins in C++. One of the features of Firebreath is it allows you to access and modify the DOM from the C++ in you browser plugin as well as create methods and properties in C++ that can be accessed from JavaScript on your page.