byte-engine 0.1.0

A composable Rust game engine focused on graphics, input, audio, physics, and retained UI.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Visual {
	pub opacity: f32,
}

impl Visual {
	pub const DEFAULT: Self = Self { opacity: 1.0 };

	pub fn opacity(opacity: f32) -> Self {
		Self { opacity }
	}
}

impl Default for Visual {
	fn default() -> Self {
		Self::DEFAULT
	}
}