1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
//!    
//!
//! A Game engine made in Rust.
pub mod error;
mod game;
pub mod prelude;
pub(crate) mod utils;
pub use game::{
camera, data, events, materials, objects, objects::Object, physics, resources, tvert, vert,
window, Game, Input, Layer, Scene, Time, Transform, Vertex,
};
pub use color_art::{color, Color};
pub use glam::{vec2, Vec2};
pub use once_cell::sync::Lazy;
pub use parking_lot::Mutex;
/// Egui feature on
#[cfg(feature = "egui")]
pub use egui_winit_vulkano::egui;
pub use rapier2d;
use winit::dpi::{PhysicalPosition, PhysicalSize};
pub type _Resources = std::sync::Arc<Mutex<resources::Resources>>;
/// Cardinal directions
pub mod directions {
pub const CENTER: [f32; 2] = [0.5; 2];
pub const N: [f32; 2] = [0.5, 0.0];
pub const NO: [f32; 2] = [1.0, 0.0];
pub const O: [f32; 2] = [1.0, 0.5];
pub const SO: [f32; 2] = [1.0; 2];
pub const S: [f32; 2] = [0.5, 1.0];
pub const SW: [f32; 2] = [0.0, 1.0];
pub const W: [f32; 2] = [0.0, 0.5];
pub const NW: [f32; 2] = [0.0; 2];
}