Skip to content

Commit

Permalink
Adding access to image
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriBaal committed Jun 14, 2023
1 parent f11652e commit 9cb224e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shura"
version = "0.4.2"
version = "0.4.3"
edition = "2021"
repository = "https://github.com/AndriBaal/shura"
documentation = "https://docs.rs/shura"
Expand Down
4 changes: 2 additions & 2 deletions src/component/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub enum GroupActivation {
/// Group is always active
Always,
/// Never
Never
Never,
}

/// Groups can be used like a chunk system to make huge 2D worlds possible or to just order your components.
Expand Down Expand Up @@ -41,7 +41,7 @@ impl Group {
GroupActivation::Position { aabb } => return cam_aabb.intersects(aabb),
GroupActivation::Always => {
return true;
},
}
GroupActivation::Never => {
return false;
}
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ pub mod audio {
pub use rodio::*;
}

/// Access to [image](https://github.com/image-rs/image)
pub mod image {
pub use image::*;
}

// Rapier2d
#[cfg(feature = "physics")]
mod world;
Expand Down

0 comments on commit 9cb224e

Please sign in to comment.