Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML CEF implementation  (Read 5955 times)

0 Members and 1 Guest are viewing this topic.

omnomasaur

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://www.omnomasaur.com
SFML CEF implementation
« 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

Some images:
Loading Google
Rotating the sprite with the web texture in it. 
Local file loaded.  Javascript callback prints the text box string to the console. 

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Re: SFML CEF implementation
« Reply #1 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?

The Terminator

  • Full Member
  • ***
  • Posts: 224
  • Windows and Mac C++ Developer
    • View Profile
Re: SFML CEF implementation
« Reply #2 on: April 16, 2013, 03:49:05 am »
Very cool!
Current Projects:
Technoport

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFML CEF implementation
« Reply #3 on: April 16, 2013, 09:16:21 am »
Good job!

omnomasaur

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://www.omnomasaur.com
Re: SFML CEF implementation
« Reply #4 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.