File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,35 +6,35 @@ This directory contains the renderer code and an example for how to interface wi
66
77## Clone the rive-runtime repo
88
9- ```
9+ ``` sh
1010git clone https://github.com/rive-app/rive-runtime.git
1111cd rive-runtime/renderer
1212```
1313
1414## Build GLFW
1515
16- ```
16+ ``` sh
1717pushd ../skia/dependencies
1818./make_glfw.sh
1919popd
2020```
2121
2222## Add build_rive.sh to $PATH
2323
24- ```
24+ ``` sh
2525export PATH=" $PATH :$( realpath ../build) "
2626```
2727
2828## Build & run
2929
30- ```
30+ ``` sh
3131build_rive.sh release
3232out/release/path_fiddle [/path/to/my.riv]
3333```
3434
3535## Build & serve for WebGL2
3636
37- ```
37+ ``` sh
3838build_rive.sh ninja wasm release
3939cd out/wasm_release
4040python3 -m http.server 5555
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ Rive is built to be platform and subsystem agnostic so you can plug-in any rende
88We currently provide build files for MacOS but we will be adding Windows and others soon too.
99### MacOS
1010All the build scripts are in viewer/build/macosx.
11- ```
11+ ``` sh
1212cd viewer/build/macosx
1313```
1414You can tell the build script to build and run a Viewer that's backed by a Metal view with our Skia renderer:
15- ```
15+ ``` sh
1616./build_viewer.sh metal skia run
1717```
1818An OpenGL example using a tessellating renderer:
19- ```
19+ ``` sh
2020./build_viewer.sh gl tess run
2121```
2222Both the Skia and Tess renderers work with either gl or metal options.
You can’t perform that action at this time.
0 commit comments