SFML community forums

General => SFML projects => Topic started by: omnomasaur on April 15, 2013, 10:13:12 pm

Title: SFML CEF implementation
Post 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)
Title: Re: SFML CEF implementation
Post by: Grimshaw on April 16, 2013, 02:58:41 am
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?
Title: Re: SFML CEF implementation
Post by: The Terminator on April 16, 2013, 03:49:05 am
Very cool!
Title: Re: SFML CEF implementation
Post by: Tank on April 16, 2013, 09:16:21 am
Good job!
Title: Re: SFML CEF implementation
Post by: omnomasaur on April 16, 2013, 09:18:35 am
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.