~starkingdoms/starkingdoms

958a99eabfcbb445dd2093920bf6e8457718b5f6 — core 2 years ago a23bde6
[WIP! VERY WIP! SUPER WIP!] start working on rendering code - add please no touchy notice
1 files changed, 2 insertions(+), 1 deletions(-)

M client/src/rendering/renderer.rs
M client/src/rendering/renderer.rs => client/src/rendering/renderer.rs +2 -1
@@ 19,7 19,8 @@ impl Renderer for WebRenderer {
    }

    async fn render_frame(&self, _time_delta_ms: f64) -> Result<(), Box<dyn Error>> {
        // TODO
        // TODO - core is working on this, please no touchy without telling him
        // TODO - until this notice is removed
        // time_delta_ms is the delta, in ms, from when the last render_frame was called by the browser
        let window = web_sys::window().ok_or("window needs to exist")?;
        let document = window.document().ok_or("window.document needs to exist")?;