6

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.

genpfault
  • 51,148
  • 11
  • 85
  • 139
Ivan Vučica
  • 9,529
  • 9
  • 60
  • 111

2 Answers2

8

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.

Community
  • 1
  • 1
PeterT
  • 1,454
  • 1
  • 12
  • 22
  • 1
    Berkelium looks awesome! Thank you so much! Here's a link to a demo (for other readers): https://github.com/sirikata/berkelium/blob/chromium8/demo/glut_input/glut_input.cpp – Ivan Vučica Feb 14 '11 at 19:34
  • There're commits as recently as 6 months ago on github and it seems that when questions occasionally come either as github issues or on the google group the author still responds promptly (last activity on the Google group was in June). Clearly not particularly active development nor massively used, but I don't think it's fair to call it abandoned. Maybe just stable :) I don't know, I've still never actually used it. – PeterT Aug 21 '13 at 07:34
0

I think Awesomium does what you are asking for. It is free for non-commercial use. But be forewarned, previous versions of the project had some serious bugs and performance issues. Try before you buy.

Nathan
  • 1,356
  • 2
  • 10
  • 16
  • My apologies for not making myself clear. I do not use Windows and therefore I also don't use Visual Studio. Since I'm switching platforms very often, and since I support and develop both free software and proprietary software, this should be preferably both cross-platform and free (BSD/LGPL). While I know about Awesomium from back when it was announced on Webkit-Meta mailing list, I didn't know it went commercial. – Ivan Vučica Jan 21 '10 at 18:49