Skip to content

Commit

Permalink
rename macroquad examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Nov 27, 2024
1 parent 4e9ad1d commit 5e1b244
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion crates/parry2d/examples/aabb2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use parry2d::shape::Ball;

const RENDER_SCALE: f32 = 30.0;

#[macroquad::main("parry2d::utils::point_in_poly2d")]
#[macroquad::main("aabb2d")]
async fn main() {
let render_pos = Vec2::new(300.0, 300.0);

Expand Down
2 changes: 1 addition & 1 deletion crates/parry2d/examples/bounding_sphere2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use parry2d::shape::Cuboid;

const RENDER_SCALE: f32 = 30.0;

#[macroquad::main("parry2d::utils::point_in_poly2d")]
#[macroquad::main("bounding_sphere2d")]
async fn main() {
let render_pos = Vec2::new(300.0, 300.0);

Expand Down
2 changes: 1 addition & 1 deletion crates/parry2d/examples/convex_hull2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use parry2d::transformation;

const RENDER_SCALE: f32 = 30.0;

#[macroquad::main("parry2d::utils::point_in_poly2d")]
#[macroquad::main("convex_hull2d")]
async fn main() {
let count = 9;
let mut pts = vec![Point2::default(); count];
Expand Down
2 changes: 1 addition & 1 deletion crates/parry2d/examples/point_in_poly2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use parry2d::utils::point_in_poly2d;

const RENDER_SCALE: f32 = 30.0;

#[macroquad::main("parry2d::utils::point_in_poly2d")]
#[macroquad::main("points_in_poly2d")]
async fn main() {
let mut spikes = spikes_polygon();
let test_points = grid_points();
Expand Down
2 changes: 1 addition & 1 deletion crates/parry2d/examples/polygons_intersection2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use parry2d::transformation::polygons_intersection_points;

const RENDER_SCALE: f32 = 30.0;

#[macroquad::main("parry2d::utils::polygons_intersection_points")]
#[macroquad::main("polygons_intersection2d")]
async fn main() {
let spikes = spikes_polygon();
let mut animated_spikes = spikes.clone();
Expand Down
2 changes: 1 addition & 1 deletion crates/parry2d/examples/project_point2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use parry2d::math::{Isometry, Translation};
use parry2d::query::PointQuery;
use parry2d::shape::{Cuboid, TriMesh, TriMeshFlags};

#[macroquad::main("parry3d::query::PlaneIntersection")]
#[macroquad::main("project_point2d")]
async fn main() {
//
// This is useful to test for https://github.com/dimforge/parry/pull/248
Expand Down
2 changes: 1 addition & 1 deletion crates/parry2d/examples/raycasts_animated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use parry2d::shape::Cuboid;

const RENDER_SCALE: f32 = 30.0;

#[macroquad::main("parry2d::query::RayCast")]
#[macroquad::main("raycasts_animated")]
async fn main() {
let animation_scale = 1.4;
let animation_rotation = 0.04;
Expand Down
2 changes: 1 addition & 1 deletion crates/parry3d/examples/aabb3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use na::Isometry3;
use parry3d::bounding_volume::{Aabb, BoundingVolume};
use parry3d::shape::Ball;

#[macroquad::main("parry2d::utils::point_in_poly2d")]
#[macroquad::main("aabb3d")]
async fn main() {
let camera_pos = Vec3::new(8f32, 8f32, 12f32);

Expand Down
2 changes: 1 addition & 1 deletion crates/parry3d/examples/bounding_sphere3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use na::{Isometry3, Vector3};
use parry3d::bounding_volume::BoundingVolume;
use parry3d::shape::Cuboid;

#[macroquad::main("parry2d::utils::point_in_poly2d")]
#[macroquad::main("bounding_sphere3d")]
async fn main() {
let camera_pos = Vec3::new(8f32, 8f32, 12f32);

Expand Down
2 changes: 1 addition & 1 deletion crates/parry3d/examples/convex_hull3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use macroquad::prelude::*;
use nalgebra::Point3;
use parry3d::transformation;

#[macroquad::main("parry2d::utils::point_in_poly2d")]
#[macroquad::main("convex_hull3d")]
async fn main() {
let count = 9;
let mut pts = vec![Point3::default(); count];
Expand Down
2 changes: 1 addition & 1 deletion crates/parry3d/examples/plane_intersection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use parry3d::shape::{Cuboid, TriMesh};
mod common_macroquad3d;
use common_macroquad3d::*;

#[macroquad::main("parry3d::query::PlaneIntersection")]
#[macroquad::main("plane_intersection")]
async fn main() {
let trimesh = Cuboid::new(Vector3::repeat(1.0)).to_trimesh();

Expand Down
2 changes: 1 addition & 1 deletion crates/parry3d/examples/project_point3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use parry3d::shape::{Cuboid, TriMesh, TriMeshFlags};
mod common_macroquad3d;
use common_macroquad3d::*;

#[macroquad::main("parry3d::query::PlaneIntersection")]
#[macroquad::main("project_point3d")]
async fn main() {
let trimesh = Cuboid::new(Vector3::new(0.2, 0.5, 1.0)).to_trimesh();

Expand Down

0 comments on commit 5e1b244

Please sign in to comment.