• Advertisement
Sign in to follow this  

SFML + Awesomium ingame web browser

This topic is 1432 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My question is simple. How can i get an awesomium web view to display it on SFML window. Just the logic, do i need to extract buffer data

from awesomium view to SFML texture and display it as drawable. By the way, it doesn't have to be SFML, you can show me an example with SDL also. Please be more clear, i need to know the logic behind displaying web views in a game surface.

Here is an example with SDL OpenGL and Awesomium

 

Share this post


Link to post
Share on other sites
Advertisement

A quick perusal of the Awesomium API shows that you can get direct access to the View::Surface::Buffer pixel data, so a less than optimal approach would be to copy this buffer data into an SFML texture and then draw with that texture.

 

If I was concerned about performance then I would investigate either some way of getting the Awesomium API to draw directly into an SFML texture or directly using the Awesomium buffer as a texture.  That doesn't eliminate the need to push this data to the graphics memory, but it would eliminate the additional copy from PC memory to PC memory.  Depending on your end goal, this may be irrelevant.

Share this post


Link to post
Share on other sites

Actually im just trying to use SFML for windowing, and experiment a little with Awesomium. I'm not trying to make fancy things like ingame computer browsing. Just using SFML as a windowing library. Thanks for your help. The solution is to copy the buffer data from awesomium to sfml texture.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement