在 cinder 应用程序中渲染 html

Render html in a cinder app

我目前正在使用 Cinder(针对 Windows 7 或更高版本)在 C++ 中开发类似游戏的应用程序,其中有一个编辑器,用户可以在其中 create/edit 游戏配置.用户可以 select 这些配置之一并玩游戏。 我已经构建了应用程序的游戏部分,但我想在类似 webkit 的引擎中使用应用程序 window 中的 html 创建应用程序的 GUI。 我查找了嵌入式 webkit 技术,发现可以 运行 webkit inside one's app。但我不知道是否可以在 cinder 应用程序中 运行 它。

您可能需要使用第三方的 webkit 包,例如 Awesomium (there is a 'cinderblock' add-on here for it) or chromium embedded. There are other packages, too, such as node-webkit,或者您可以使用特定于 windows 的 Web 视图。但是,如果你想在 opengl 之上渲染 html UI,你需要确保你使用的任何工具包都支持离屏渲染(我知道我提到的前两个已经支持在 cinder 应用程序中用于此目的)。