开发者

HTML renderer drop-in, C++ code

开发者 https://www.devze.com 2022-12-20 15:50 出处:网络
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 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 Moz开发者_Python百科illa/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!


Take a look at WebKit.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号