hadean-zig/src/engine/Layer.zig

16 lines
259 B
Zig
Raw Normal View History

2024-08-21 15:57:18 -04:00
const Layer = @This();
z_index: i32,
fn layer(z_index: i32) Layer {
return .{
.z_index = z_index
};
}
pub const HIDDEN = layer(-1);
2024-08-21 15:57:18 -04:00
pub const FLOOR = layer(0);
pub const ENTITIES = layer(1);
2024-09-20 18:00:50 -04:00
pub const CAMERA = layer(2);
pub const SELECTION = layer(3);