mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Rename shapes examples for consistency (#6082)
# Objective I was about to submit a PR to add these two examples to `bevy-website` and re-discovered the inconsistency. Although it's not a major issue on the website where only the filenames are shown, this would help to visually distinguish the two examples in the list because the names are very prominent. This also helps out when fuzzy-searching the codebase for these files. ## Solution Rename `shapes` to `2d_shapes`. Now the filename matches the example name, and the naming structure matches the 3d example. ## Notes @Nilirad proposed this in https://github.com/bevyengine/bevy/pull/4613#discussion_r862455631 but it had slipped away from my brain at that time.
This commit is contained in:
parent
481eec2c92
commit
847c26b8dc
5 changed files with 12 additions and 12 deletions
10
.github/workflows/validation-jobs.yml
vendored
10
.github/workflows/validation-jobs.yml
vendored
|
@ -41,7 +41,7 @@ jobs:
|
|||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
|
@ -51,13 +51,13 @@ jobs:
|
|||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-build-android-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
|
||||
- name: Install Android targets
|
||||
run: rustup target add aarch64-linux-android armv7-linux-androideabi
|
||||
|
||||
|
||||
- name: Install Cargo APK
|
||||
run: cargo install --force cargo-apk
|
||||
|
||||
|
||||
- name: Build APK
|
||||
run: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --example android_example
|
||||
|
||||
|
@ -147,7 +147,7 @@ jobs:
|
|||
# start a webserver
|
||||
python3 -m http.server --directory examples/wasm &
|
||||
|
||||
xvfb-run cargo run -p build-wasm-example -- --browsers chromium --browsers firefox --frames 25 --test shapes lighting text_debug breakout
|
||||
xvfb-run cargo run -p build-wasm-example -- --browsers chromium --browsers firefox --frames 25 --test 2d_shapes lighting text_debug breakout
|
||||
|
||||
- name: Save screenshots
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -193,11 +193,11 @@ category = "2D Rendering"
|
|||
wasm = true
|
||||
|
||||
[[example]]
|
||||
name = "shapes"
|
||||
path = "examples/2d/shapes.rs"
|
||||
name = "2d_shapes"
|
||||
path = "examples/2d/2d_shapes.rs"
|
||||
|
||||
[package.metadata.example.shapes]
|
||||
name = "Shapes"
|
||||
[package.metadata.example.2d_shapes]
|
||||
name = "2D Shapes"
|
||||
description = "Renders a rectangle, circle, and hexagon"
|
||||
category = "2D Rendering"
|
||||
wasm = true
|
||||
|
@ -275,7 +275,7 @@ wasm = true
|
|||
|
||||
[[example]]
|
||||
name = "3d_shapes"
|
||||
path = "examples/3d/shapes.rs"
|
||||
path = "examples/3d/3d_shapes.rs"
|
||||
|
||||
[package.metadata.example.3d_shapes]
|
||||
name = "3D Shapes"
|
||||
|
|
|
@ -88,11 +88,11 @@ Example | Description
|
|||
Example | Description
|
||||
--- | ---
|
||||
[2D Rotation](../examples/2d/rotation.rs) | Demonstrates rotating entities in 2D with quaternions
|
||||
[2D Shapes](../examples/2d/2d_shapes.rs) | Renders a rectangle, circle, and hexagon
|
||||
[Manual Mesh 2D](../examples/2d/mesh2d_manual.rs) | Renders a custom mesh "manually" with "mid-level" renderer apis
|
||||
[Mesh 2D](../examples/2d/mesh2d.rs) | Renders a 2d mesh
|
||||
[Mesh 2D With Vertex Colors](../examples/2d/mesh2d_vertex_color_texture.rs) | Renders a 2d mesh with vertex color attributes
|
||||
[Move Sprite](../examples/2d/move_sprite.rs) | Changes the transform of a sprite
|
||||
[Shapes](../examples/2d/shapes.rs) | Renders a rectangle, circle, and hexagon
|
||||
[Sprite](../examples/2d/sprite.rs) | Renders a sprite
|
||||
[Sprite Flipping](../examples/2d/sprite_flipping.rs) | Renders a sprite flipped along an axis
|
||||
[Sprite Sheet](../examples/2d/sprite_sheet.rs) | Renders an animated sprite
|
||||
|
@ -105,7 +105,7 @@ Example | Description
|
|||
Example | Description
|
||||
--- | ---
|
||||
[3D Scene](../examples/3d/3d_scene.rs) | Simple 3D scene with basic shapes and lighting
|
||||
[3D Shapes](../examples/3d/shapes.rs) | A scene showcasing the built-in 3D shapes
|
||||
[3D Shapes](../examples/3d/3d_shapes.rs) | A scene showcasing the built-in 3D shapes
|
||||
[Lighting](../examples/3d/lighting.rs) | Illustrates various lighting options in a simple scene
|
||||
[Lines](../examples/3d/lines.rs) | Create a custom material to draw 3d lines
|
||||
[Load glTF](../examples/3d/load_gltf.rs) | Loads and renders a glTF file as a scene
|
||||
|
|
Loading…
Reference in a new issue