Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Celiasson

Member Since 27 Nov 2012
Offline Last Active Oct 31 2014 01:53 PM

Topics I've Started

Awesomium Framework, rendering problems C++ and DirectX11!

08 January 2013 - 03:50 AM

Hi everyone,

I'm using Awesomium(www.awesomium.com), version 1.7, to store a website and then render it to a plane in my application. The plan is to have some kind of GUI system connected to a home page and continuously render the site on the plane and update it once something has happened on the site.

Now, the problem is that I have not idea where to start with this framework. The documentation for 1.7 is completely different from the 1.6.6 version and there's no sample code or tutorials to be found anywhere. So far I've initialized the entire thing and have been able to load a website and save it to a PNG. I can then, of course, just render the PNG to the plane and it works.

However, loading a website, saving it to file only to load it from file and render it is a huge waste of resources so I'm trying to skip the SaveToPNG - stage. The problem is that I have no idea how to use the Awesomium Framework for rendering. In the old version there were RenderBuffers and Render calls to be made from those buffers, but the 1.7 version has that completely changed and I can't find the equivalent ways to do this in the 1.7.

Using the 1.6.6 version is not an option since it's not compatible with VS2010. Even if I set the VS2010 to use the old compiler from VS2008(which should work) it doesn't work.

What I've done so far is load the website onto a Awesomium::BitmapSurface object, but I don't know what to do with the data in it. The Awesomium::BitmapSurface contains a buffer with raw 32-bit BGRA format and I can get the bitmap height and width in pixels as well.

If anyone can help me out I would be very grateful, thanks in advance

Sincerely,

ClockWise

PARTNERS