如何在 OpenGL 上下文中 render/show 网页?
How to render/show webpage in OpenGL Context?
我正在为我的游戏创建一个简单的启动器。
我的启动器是跨平台的 GUI 应用程序。我正在使用 C++、SDL2 和 OpenGL 创建非常漂亮的 GUI 应用程序,其中包含一些按钮、图像、文本等...
但现在我想在我的启动器中的某处制作新闻页面。当我创建我的第一个启动器(仅 Windows 和 C# 而不是 C++)时,Visual C# 中有一个表单生成器,但现在我正在使用 C++ 创建 GUI 应用程序,没有任何生成器,只有 SDL2、OpenGL。 Visual C# 在他的工具箱中有现成的 Web 上下文面板。
但现在我的问题是如何使用 OpenGL render/show 网页?
我想从 Visual C# 的工具箱中实现类似 webpanel 的东西。
它叫做 WebBrowser 之类的...
也许有一种方法可以在 SDL 表面或其他东西中呈现页面?
呈现网页是开发团队的全职工作(我正在考虑 Mozilla Firefox、Microsoft Edge/IE、...伙计们)。
关于C#WebBrowserwindows表单组件:
The WebBrowser control is a managed wrapper around a component
installed with Internet Explorer.
实际上,正如所说 here:
One solution (probably the easiest at the moment but not necessary the
best) is to include a complete web browser engine into your game.
Awesomium seems to be the more popular.
Berkelium is an alternative solution, that I didn't tried yet.
我正在为我的游戏创建一个简单的启动器。 我的启动器是跨平台的 GUI 应用程序。我正在使用 C++、SDL2 和 OpenGL 创建非常漂亮的 GUI 应用程序,其中包含一些按钮、图像、文本等...
但现在我想在我的启动器中的某处制作新闻页面。当我创建我的第一个启动器(仅 Windows 和 C# 而不是 C++)时,Visual C# 中有一个表单生成器,但现在我正在使用 C++ 创建 GUI 应用程序,没有任何生成器,只有 SDL2、OpenGL。 Visual C# 在他的工具箱中有现成的 Web 上下文面板。
但现在我的问题是如何使用 OpenGL render/show 网页? 我想从 Visual C# 的工具箱中实现类似 webpanel 的东西。 它叫做 WebBrowser 之类的...
也许有一种方法可以在 SDL 表面或其他东西中呈现页面?
呈现网页是开发团队的全职工作(我正在考虑 Mozilla Firefox、Microsoft Edge/IE、...伙计们)。
关于C#WebBrowserwindows表单组件:
The WebBrowser control is a managed wrapper around a component installed with Internet Explorer.
实际上,正如所说 here:
One solution (probably the easiest at the moment but not necessary the best) is to include a complete web browser engine into your game.
Awesomium seems to be the more popular. Berkelium is an alternative solution, that I didn't tried yet.