bobobobo
bobobobo

Reputation: 67224

HTML renderer drop-in, C++ code

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!

Upvotes: 4

Views: 1331

Answers (2)

Zitrax
Zitrax

Reputation: 20255

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.

Upvotes: 0

Axel Gneiting
Axel Gneiting

Reputation: 5403

Take a look at WebKit.

Upvotes: 1

Related Questions