HTML 渲染器插件,C++代码

发布于 2024-08-22 03:39:45 字数 423 浏览 4 评论 0原文

我想添加一个 HTML 渲染器,该渲染器基本上用于渲染到纹理操作。

如果我可以将 HTML 渲染到 HDC,那就完美了。

我发现 HTMLayout ,这还不错。但它不是开源的。但我想知道是否有一种方法可以以某种方式利用 IE 或 Mozilla/Gecko 代码,这有多现实/困难,以及可能有一些关于如何做到这一点的指示。

它将用于常规的直接 C++ directx 应用程序

编辑

哇! Mozilla 有一个嵌入工具包!

I want to drop in an HTML renderer that will basically be used for render-to-texture operations.

If I can render the HTML to an HDC, that would be perfect.

I found HTMLayout, which isn't bad. But it isn't open source. But I'm wondering if there's a way to somehow tap into IE or Mozilla/Gecko code, how realisitic/difficult this will be, and possibly some pointers on how to do it.

It will be for a regular straight C++ directx application

Edit

Wow! Mozilla has an embedding kit!

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

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

发布评论

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

评论(2

清眉祭 2024-08-29 03:39:45

看看 WebKit。

Take a look at WebKit.

云仙小弟 2024-08-29 03:39:45

Qt 可以做到,渲染到 QPainter。例如,请参阅 http://doc.trolltech.com/4.6/qwebpage.html但如果您还没有使用 Qt,则不确定它是否容易使用。

Qt can do it, render to a QPainter. See for example http://doc.trolltech.com/4.6/qwebpage.html But not sure if it's easily used if you are not already using Qt.

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