File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 41
41
- uses : actions-rs/toolchain@v1
42
42
with :
43
43
toolchain : stable
44
-
44
+
45
45
- uses : actions/cache@v3
46
46
with :
47
47
path : |
@@ -51,13 +51,13 @@ jobs:
51
51
~/.cargo/git/db/
52
52
target/
53
53
key : ${{ runner.os }}-cargo-build-android-${{ hashFiles('**/Cargo.toml') }}
54
-
54
+
55
55
- name : Install Android targets
56
56
run : rustup target add aarch64-linux-android armv7-linux-androideabi
57
-
57
+
58
58
- name : Install Cargo APK
59
59
run : cargo install --force cargo-apk
60
-
60
+
61
61
- name : Build APK
62
62
run : ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --example android_example
63
63
@@ -147,7 +147,7 @@ jobs:
147
147
# start a webserver
148
148
python3 -m http.server --directory examples/wasm &
149
149
150
- xvfb-run cargo run -p build-wasm-example -- --browsers chromium --browsers firefox --frames 25 --test shapes lighting text_debug breakout
150
+ xvfb-run cargo run -p build-wasm-example -- --browsers chromium --browsers firefox --frames 25 --test 2d_shapes lighting text_debug breakout
151
151
152
152
- name : Save screenshots
153
153
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change @@ -193,11 +193,11 @@ category = "2D Rendering"
193
193
wasm = true
194
194
195
195
[[example ]]
196
- name = " shapes "
197
- path = " examples/2d/shapes .rs"
196
+ name = " 2d_shapes "
197
+ path = " examples/2d/2d_shapes .rs"
198
198
199
- [package .metadata .example .shapes ]
200
- name = " Shapes"
199
+ [package .metadata .example .2d_shapes ]
200
+ name = " 2D Shapes"
201
201
description = " Renders a rectangle, circle, and hexagon"
202
202
category = " 2D Rendering"
203
203
wasm = true
@@ -275,7 +275,7 @@ wasm = true
275
275
276
276
[[example ]]
277
277
name = " 3d_shapes"
278
- path = " examples/3d/shapes .rs"
278
+ path = " examples/3d/3d_shapes .rs"
279
279
280
280
[package .metadata .example .3d_shapes ]
281
281
name = " 3D Shapes"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -88,11 +88,11 @@ Example | Description
88
88
Example | Description
89
89
--- | ---
90
90
[ 2D Rotation] ( ../examples/2d/rotation.rs ) | Demonstrates rotating entities in 2D with quaternions
91
+ [ 2D Shapes] ( ../examples/2d/2d_shapes.rs ) | Renders a rectangle, circle, and hexagon
91
92
[ Manual Mesh 2D] ( ../examples/2d/mesh2d_manual.rs ) | Renders a custom mesh "manually" with "mid-level" renderer apis
92
93
[ Mesh 2D] ( ../examples/2d/mesh2d.rs ) | Renders a 2d mesh
93
94
[ Mesh 2D With Vertex Colors] ( ../examples/2d/mesh2d_vertex_color_texture.rs ) | Renders a 2d mesh with vertex color attributes
94
95
[ Move Sprite] ( ../examples/2d/move_sprite.rs ) | Changes the transform of a sprite
95
- [ Shapes] ( ../examples/2d/shapes.rs ) | Renders a rectangle, circle, and hexagon
96
96
[ Sprite] ( ../examples/2d/sprite.rs ) | Renders a sprite
97
97
[ Sprite Flipping] ( ../examples/2d/sprite_flipping.rs ) | Renders a sprite flipped along an axis
98
98
[ Sprite Sheet] ( ../examples/2d/sprite_sheet.rs ) | Renders an animated sprite
@@ -105,7 +105,7 @@ Example | Description
105
105
Example | Description
106
106
--- | ---
107
107
[ 3D Scene] ( ../examples/3d/3d_scene.rs ) | Simple 3D scene with basic shapes and lighting
108
- [ 3D Shapes] ( ../examples/3d/shapes .rs ) | A scene showcasing the built-in 3D shapes
108
+ [ 3D Shapes] ( ../examples/3d/3d_shapes .rs ) | A scene showcasing the built-in 3D shapes
109
109
[ Lighting] ( ../examples/3d/lighting.rs ) | Illustrates various lighting options in a simple scene
110
110
[ Lines] ( ../examples/3d/lines.rs ) | Create a custom material to draw 3d lines
111
111
[ Load glTF] ( ../examples/3d/load_gltf.rs ) | Loads and renders a glTF file as a scene
You can’t perform that action at this time.
0 commit comments