SFML community forums
General => SFML projects => Topic started by: omnomasaur on April 15, 2013, 10:13:12 pm
-
I wrote a simple implementation of CEF1 (Chromium Embedded Framework) offscreen rendering which draws to an SFML texture for easily embedding web pages in SFML projects.
I originally built the system so that I could use it for UI, so naturally it supports javascript callbacks.
I also included the custom scheme I wrote so that CEF can load local files.
The source is available here:https://github.com/omnomasaur/web_system (https://github.com/omnomasaur/web_system)
Some images:
Loading Google (http://www.omnomasaur.com/content/upload/loading-google.png)
Rotating the sprite with the web texture in it. (http://www.omnomasaur.com/content/upload/sprite-rotated.png)
Local file loaded. Javascript callback prints the text box string to the console. (http://www.omnomasaur.com/content/upload/js-callbacks.png)
-
O.o Your idea sounds pretty awesome! As well as the results! Congratulations on the effort so far!
Also, I think its on-topic to mention Awesomium? Isn't it for the same purposes?
-
Very cool!
-
Good job!
-
O.o Your idea sounds pretty awesome! As well as the results! Congratulations on the effort so far!
Also, I think its on-topic to mention Awesomium? Isn't it for the same purposes?
Thanks!
Awesomium pretty much does the same thing I'm using CEF for here (though with an admittedly simpler to use API since it is focused specifically for that), but since it's not totally free anymore I figured I'd try my hands at CEF instead.