Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am developing a desktop game in C++ and OpenGL. Frameworks I use are GLM and SFML. Since today I used the console window for debug messages. But I want to get rid of that and display debug information right into the render window.

Since I also want to implement a generic way to realize user interface, I decided to use web technologies for that. Note that the user interface will be only a two dimensional overlay on the rendered three dimensional scene. I consider using the webkit browser engine but that might be overkill since I do not need page loading and networking but only HTML and CSS rendering (and maybe JS execution). Because the user interface and debug messages will change every few frames, this is performance related.

How to render fullscreen webpages (with a transparent background) over my OpenGL scene? I would like a cross-platform solution.

share|improve this question
1  
That's one reason why WebGL is awesome. –  Bartek Banachewicz Jan 14 '13 at 10:05
add comment

1 Answer

up vote 2 down vote accepted

Apart from implementing it yourself, there's http://awesomium.com/, which is basically webkit wrapped in a way that makes it simpler to plug into applications.

http://librocket.com/ is apparently a completely separate html/css engine for games, but apparently hasn't been updated since 2011, so I don't know if it's alive.

share|improve this answer
3  
There is also berkelium.org. You can also do it in Qt using a QWebView –  David C. Bishop Jan 14 '13 at 10:23
    
I will take a look at berkelium because it is BDS licenced and under active development. Hopefully is supports a transparent page background, otherwise I would need a hack. –  danijar Jan 14 '13 at 19:30
    
Sadly berkelium as well as other chromium based projects are a bit of overkill providing full browser support covering cookies, ... But I will give it a try. –  danijar Jan 14 '13 at 19:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.