离屏&嵌入式浏览器比较(用于游戏)

发布于 2024-10-18 16:14:07 字数 1539 浏览 2 评论 0原文

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

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

发布评论

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

评论(3

赢得她心 2024-10-25 16:14:07

查看 Chromium 嵌入式框架。 CEF 3 支持所有操作系统上的离屏渲染:Windows/Mac/Linux。

Take a look at the Chromium Embedded Framework. CEF 3 supports off-screen rendering on all operating systems: Windows/Mac/Linux.

巡山小妖精 2024-10-25 16:14:07

免责声明:我创建了 Awesomium。尽管如此,我会在回答中保持最大的客观性。

Awesomium 确实要花一点钱,但它绝对是完成这项工作的最佳工具,我将用项目符号列表来捍卫我的理由:

  • 简单、文档齐全的 API;我们尽力让 API 尽可能直观和可读。当您嵌入像整个浏览器框架这样庞大而复杂的东西时,这一点非常重要。 (相信我,您不想直接嵌入 WebKit —— 这就像吞下太阳一样。)

  • 无窗口渲染;该库从一开始就被设计为在标准“窗口框架”之外使用。我们使将 WebView 渲染到纹理变得非常容易:

void update()
{
    if(webView->isDirty())
        webView->render()->copyTo(texture, width * bpp, bpp, false);
}
  • 可靠的 Javascript 集成;如果您使用 Awesomium 作为 3D 游戏的 HTML GUI 渲染器,您肯定会想利用我们的 Javascript <-> C++ 集成。您可以直接从 C++ 调用 Javascript 函数,反之亦然,设置回调,公开全局属性等等。我在我的博客上写了一篇重要指南

  • 支持良好;我们使用从顶级商业许可证获得的资金来资助图书馆的支持和发展。如果您需要帮助,请访问 http://support.awesomium.com,我们很乐意为您提供帮助。

该库免费供非商业用途,并且对于独立开发人员来说非常实惠。如果您想在下一个项目中使用 Awesomium 并且担心价格问题,请发送电子邮件至 [电子邮件受保护],我看看能否帮助您。 :-)

Disclaimer: I created Awesomium. Nevertheless, I will practice the utmost objectivity in my response.

Awesomium does cost a bit of money but it is definitely the best tool for the job, I'll defend my reasons with a bulleted list:

  • Simple, well-documented API; we've tried our best to keep the API as intuitive and readable as possible. That's really important when you're embedded something as large and complex as an entire browser framework. (Believe me, you don't want to embed WebKit directly-- that's like swallowing the sun.)

  • Windowless rendering; the library was designed from the outset to be used outside of a standard "windowing framework". We make it really easy to render a WebView to a texture:

void update()
{
    if(webView->isDirty())
        webView->render()->copyTo(texture, width * bpp, bpp, false);
}
  • Solid Javascript integration; if you use Awesomium as an HTML GUI renderer for your 3D game, you'll definitely want to take advantage of our Javascript <-> C++ integration. You can call Javascript functions directly from C++ and vice-versa, set callbacks, expose global properties, and more. I wrote up a big guide on my blog here.

  • Well-supported; we use the money we get from our top-tier commercial licenses to fund support and development of the library. If you need help, please visit http://support.awesomium.com and we'll be glad to lend a hand.

The library is free for non-commercial use and very affordable for indie developers. If you'd like to use Awesomium in your next project and are worried about the price-point, please email me at [email protected] and I'll see if I can't help you out. :-)

陌路终见情 2024-10-25 16:14:07

锫使用起来确实很轻松。我在 6 天内将其集成到我的游戏中,您可以在这里阅读所有相关信息(以及一些其他选项):http://www.onemanmmo.com/index.php?cmd=newsitem&comment=news.1.31.0

唯一的缺点是没有调试版本和 40MB二进制文件。

Berkelium is really painless to use. I integrated it into my game in 6 days, you can read all about it (and some other options) here: http://www.onemanmmo.com/index.php?cmd=newsitem&comment=news.1.31.0

The only downside is no debug build and 40MB of binaries.

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