Skip to content

Commit 370c272

Browse files
ekropotinalice-i-cecileJondolf
authored andcommitted
Move gizmos examples in the separate folder (bevyengine#11916)
# Objective Move Gizmo examples into the separate directory Fixes bevyengine#11899 --------- Co-authored-by: Alice Cecile <[email protected]> Co-authored-by: Joona Aalto <[email protected]>
1 parent fae5e09 commit 370c272

File tree

4 files changed

+31
-24
lines changed

4 files changed

+31
-24
lines changed

Cargo.toml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -426,17 +426,6 @@ description = "Renders a glTF mesh in 2D with a custom vertex attribute"
426426
category = "2D Rendering"
427427
wasm = true
428428

429-
[[example]]
430-
name = "2d_gizmos"
431-
path = "examples/2d/2d_gizmos.rs"
432-
doc-scrape-examples = true
433-
434-
[package.metadata.example.2d_gizmos]
435-
name = "2D Gizmos"
436-
description = "A scene showcasing 2D gizmos"
437-
category = "2D Rendering"
438-
wasm = true
439-
440429
[[example]]
441430
name = "sprite"
442431
path = "examples/2d/sprite.rs"
@@ -611,17 +600,6 @@ description = "Compares different anti-aliasing methods"
611600
category = "3D Rendering"
612601
wasm = false
613602

614-
[[example]]
615-
name = "3d_gizmos"
616-
path = "examples/3d/3d_gizmos.rs"
617-
doc-scrape-examples = true
618-
619-
[package.metadata.example.3d_gizmos]
620-
name = "3D Gizmos"
621-
description = "A scene showcasing 3D gizmos"
622-
category = "3D Rendering"
623-
wasm = true
624-
625603
[[example]]
626604
name = "atmospheric_fog"
627605
path = "examples/3d/atmospheric_fog.rs"
@@ -2654,6 +2632,29 @@ description = "Shows off rendering for all math primitives as both Meshes and Gi
26542632
category = "Math"
26552633
wasm = true
26562634

2635+
# Gizmos
2636+
[[example]]
2637+
name = "2d_gizmos"
2638+
path = "examples/gizmos/2d_gizmos.rs"
2639+
doc-scrape-examples = true
2640+
2641+
[package.metadata.example.2d_gizmos]
2642+
name = "2D Gizmos"
2643+
description = "A scene showcasing 2D gizmos"
2644+
category = "Gizmos"
2645+
wasm = true
2646+
2647+
[[example]]
2648+
name = "3d_gizmos"
2649+
path = "examples/gizmos/3d_gizmos.rs"
2650+
doc-scrape-examples = true
2651+
2652+
[package.metadata.example.3d_gizmos]
2653+
name = "3D Gizmos"
2654+
description = "A scene showcasing 3D gizmos"
2655+
category = "Gizmos"
2656+
wasm = true
2657+
26572658
[profile.wasm-release]
26582659
inherits = "release"
26592660
opt-level = "z"

examples/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ git checkout v0.4.0
4848
- [Diagnostics](#diagnostics)
4949
- [ECS (Entity Component System)](#ecs-entity-component-system)
5050
- [Games](#games)
51+
- [Gizmos](#gizmos)
5152
- [Input](#input)
5253
- [Math](#math)
5354
- [Reflection](#reflection)
@@ -95,7 +96,6 @@ Example | Description
9596
--- | ---
9697
[2D Bloom](../examples/2d/bloom_2d.rs) | Illustrates bloom post-processing in 2d
9798
[2D Bounding Volume Intersections](../examples/2d/bounding_2d.rs) | Showcases bounding volumes and intersection tests
98-
[2D Gizmos](../examples/2d/2d_gizmos.rs) | A scene showcasing 2D gizmos
9999
[2D Rotation](../examples/2d/rotation.rs) | Demonstrates rotating entities in 2D with quaternions
100100
[2D Shapes](../examples/2d/2d_shapes.rs) | Renders simple 2D primitive shapes like circles and polygons
101101
[2D Viewport To World](../examples/2d/2d_viewport_to_world.rs) | Demonstrates how to use the `Camera::viewport_to_world_2d` method
@@ -119,7 +119,6 @@ Example | Description
119119
Example | Description
120120
--- | ---
121121
[3D Bloom](../examples/3d/bloom_3d.rs) | Illustrates bloom configuration using HDR and emissive materials
122-
[3D Gizmos](../examples/3d/3d_gizmos.rs) | A scene showcasing 3D gizmos
123122
[3D Scene](../examples/3d/3d_scene.rs) | Simple 3D scene with basic shapes and lighting
124123
[3D Shapes](../examples/3d/3d_shapes.rs) | A scene showcasing the built-in 3D shapes
125124
[3D Viewport To World](../examples/3d/3d_viewport_to_world.rs) | Demonstrates how to use the `Camera::viewport_to_world` method
@@ -260,6 +259,13 @@ Example | Description
260259
[Contributors](../examples/games/contributors.rs) | Displays each contributor as a bouncy bevy-ball!
261260
[Game Menu](../examples/games/game_menu.rs) | A simple game menu
262261

262+
## Gizmos
263+
264+
Example | Description
265+
--- | ---
266+
[2D Gizmos](../examples/gizmos/2d_gizmos.rs) | A scene showcasing 2D gizmos
267+
[3D Gizmos](../examples/gizmos/3d_gizmos.rs) | A scene showcasing 3D gizmos
268+
263269
## Input
264270

265271
Example | Description
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)