How to use webrender to render HTML?

319 views Asked by At

I recently started a project for an experimental web browser built in Rust, but I didn't want to build the renderer, so I wanted to use webrender.

I wanted to ask if anybody can explain to me how to use webrender to render an HTML document and how to render it onto a window (the window is managed by winit and the OpenGL APIs are used via glutin)

1

There are 1 answers

4
Jinlei Li On

Rendering web pages requires first parsing HTML, CSS, and even javascript loading and execution, while WebRender is only a rendering engine, it is a component of Servo Browser, so it needs to be used in conjunction with Servo Browser.

If you need a more streamlined browser, you can trim down the Servo source code.