Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rendering Webkit into GL texture

Tags:

webkit

opengl

I'm looking for a portable, as-less-hackish-as-possible way of rendering WebKit into texture, and injecting events back into texture. Bonus points for being able to override theme of UI elements (textboxes, buttons, scrollbars). Extra bonus points for being able to render into SDL surface as well. Overall, I'd like to be able to just grab a RGBA pixel byte array and do with it as I please. Browser shouldn't be running, it should all be done in-game.

This should in no way be platform dependent and should be compatible with developing both proprietary and DFGS-free software.

like image 575
Ivan Vučica Avatar asked Aug 02 '09 19:08

Ivan Vučica


1 Answers

Berkelium is an open source (BSD) project designed to do this, but I don't have any personal experience with it.

Edit October 2013:

I still seem to be getting the occasional upvote for this answer, although as mentioned in the comments bellow Berkelium does seem to be pretty much abandoned (I know I vaguely defend it against that accusation in the comments, but realistically it is true).

I've read some encouraging things recently about Chromium Embedded and would suggest the dear reader may want to check that out, as well as this related SO question.

Awesomium is also well worth a mention. Not being FOSS might be a deal-breaker for some, but it is free to use if your revenue is <$100k.

like image 76
PeterT Avatar answered Sep 28 '22 08:09

PeterT