specs_camera
camera 2d and 3d component for specs
let mut world = new;
let mut dispatcher = new
.bundle.unwrap
.bundle.unwrap
.build;
world.create_entity
.with
.with
.with
.build;
dispatcher.dispatch;
camera 2d and 3d component for specs
let mut world = World::new();
let mut dispatcher = SpecsBundler::new(&mut world, DispatcherBuilder::new())
.bundle(TransformBundle::<f32>::new()).unwrap()
.bundle(CameraBundle::<f32>::new(1024_usize, 768_usize)).unwrap()
.build();
world.create_entity()
.with(LocalTransform2D::<f32>::new())
.with(Transform2D::<f32>::new())
.with(Camera2D::<f32>::new())
.build();
dispatcher.dispatch(&mut world.res);