Crates.io | bevy_vector_shapes |
lib.rs | bevy_vector_shapes |
version | |
source | src |
created_at | 2023-04-24 15:13:02.953689 |
updated_at | 2024-12-01 22:58:19.71484 |
description | A library for rendering vector shapes using the Bevy game engine |
homepage | https://github.com/james-j-obrien/bevy_vector_shapes |
repository | https://github.com/james-j-obrien/bevy_vector_shapes |
max_upload_size | |
id | 847532 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Bevy Vector Shapes is a library for easily and ergonomically creating instanced vector shapes in Bevy.
Bevy Vector Shapes is in the early stages of development. You may encounter issues, but feel free to report them.
See basic usage below and the examples for more details on all supported features.
use bevy::prelude::*;
// Import commonly used items
use bevy_vector_shapes::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
// Add the shape plugin:
// - Shape2dPlugin for 2D cameras
// - ShapePlugin for both 3D and 2D cameras
.add_plugins(Shape2dPlugin::default())
.add_systems(Startup, setup)
.add_systems(Update, draw)
.run();
}
fn setup(mut commands: Commands) {
// Spawn the camera
commands.spawn(Camera2dBundle::default());
}
fn draw(mut painter: ShapePainter) {
// Draw a circle
painter.circle(100.0);
}
bevy | bevy_vector_shapes |
---|---|
0.15 | 0.9.2 |
0.14 | 0.8.2 |
0.13 | 0.7.0 |
0.12 | 0.6.0 |
0.11 | 0.5.2 |
0.10 | 0.4.6 |