tree: 367cb7a3294a8d6949b7c631ce90fa6a8298a740 [path history] [tgz]
  1. glad/
  2. include/
  3. path_fiddle/
  4. rive_vk_bootstrap/
  5. shader_hotload/
  6. src/
  7. webgpu_player/
  8. LICENSE
  9. make_dawn.sh
  10. make_moltenvk.sh
  11. make_swiftshader.sh
  12. premake5.lua
  13. premake5_pls_renderer.lua
  14. README.md
renderer/README.md

Rive Renderer

The Rive Renderer is a vector and raster graphics renderer custom-built for Rive content, for animation, and for runtime.

This directory contains the renderer code and an example for how to interface with it directly. It contains the best in class concrete implementation of Rive's rendering abstraction layer, which we call the Rive Renderer.

Clone the rive-runtime repo

git clone https://github.com/rive-app/rive-runtime.git
cd rive-runtime/renderer

Build GLFW

pushd ../skia/dependencies
./make_glfw.sh
popd

Add build_rive.sh to $PATH

export PATH="$PATH:$(realpath ../build)"

Build & run

build_rive.sh release
out/release/path_fiddle [/path/to/my.riv]

Build & serve for WebGL2

build_rive.sh ninja wasm release
cd out/wasm_release
python3 -m http.server 5555

Helpful keys

  • h/H: add/subtract copies to the left and right (only when a .riv is provided)
  • j/J: add/subtract copies below (only when a .riv is provided)
  • k/K: add/subtract copies above (only when a .riv is provided)
  • p: pause runtime (for benchmarking the renderer in isolation)
  • a: toggle “atomic” mode