🔒 Locked
HTTP Browser Renderer
Advertisement
Original Post
Quote:
Is there any open-source browser renderer class, to which I pass a DC (drawing context), or something, and it will render http data?
I only know Microsoft's IHTMLRenderer interface, but that would not be open-source.
Quote:
And can I get it to render data I have in memory already, and not connect to some website?
I don't see why not. A renderer just renders, it doesn't care where the original data came from.
Have a look at Mozilla's Gecko. I don't know if this is the best link, but it should be a start.
You can embed Gecko, and with some contortions, get it to render to an arbitrary device context. here are some examples of embedded Gecko projects, including an ActiveX control that's fairly painless to use. IIRC, the ActiveX control's webpage has an example of loading a page from data.
wxWidgets has a HTML control you may find useful. It's a cripled-LGPL licence - the best kind of open source.
Quote:
Original post by golopart
I don't want to start a puney post about it so: have you heard of anybody implementing css or plugin css/html interpreter into a game engine to do gui's? The idea just seems good.
isn't that overkill though?
any XML-based layout would be just as easy to use, and there are so many nice parsers out there.
I believe this is how mozilla firefox does its GUI (or something similar).
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement