• Rahix's avatar
    Start working on an actually useful prototype · aa678e3e
    Rahix authored
    - Make the canvas fit itself to the screen.
    - Add an SVG overlay which we can use to easily detect click-events in
      certain places (use only SVG for rendering maybe?).
    - Rename `src/lib.rs` to `src/main.rs` as that's what people are used to
      (the fact that we are building a cdylib is irrelevant for this).
    - Add a utils.rs module and move things like request_animation_frame()
    - Add a global timer/clock resource.
mod.rs 170 Bytes