#specs #camera #2d #3d

specs_camera

camera 2d and 3d component for specs

22 releases

Uses old Rust 2015

0.5.0 Jul 5, 2019
0.4.3 Nov 24, 2018
0.4.2 Jul 8, 2018
0.3.4 Jan 22, 2018
0.3.0 Nov 27, 2017

#6 in #specs

Download history 59/week @ 2023-10-28 14/week @ 2023-11-04 34/week @ 2023-11-11 10/week @ 2023-11-18 57/week @ 2023-11-25 70/week @ 2023-12-02 8/week @ 2023-12-09 30/week @ 2023-12-16 52/week @ 2023-12-23 4/week @ 2023-12-30 8/week @ 2024-01-06 23/week @ 2024-01-13 48/week @ 2024-01-20 48/week @ 2024-01-27 6/week @ 2024-02-03 70/week @ 2024-02-10

187 downloads per month
Used in 2 crates

MIT license

17KB
522 lines

specs_camera

camera 2d and 3d component for specs

let mut world = World::new();

let mut dispatcher = Bundler::new(&mut world, DispatcherBuilder::new())
    .bundle(TransformBundle::<f32>::default()).unwrap()
    // CameraBundle adds TransformSystem<T> to CameraSystem<T> deps
    .bundle(CameraBundle::<f32>::default()).unwrap()
    .build();

world.create_entity()
    .with(Transform2D::<f32>::default())
    .with(Camera2D::<f32>::default().with_size(1024, 768))
    .build();

dispatcher.dispatch(&mut world.res);

Dependencies

~7MB
~135K SLoC