blue_engine_core/prelude/
imports.rs1pub use downcast;
2pub use glam;
3pub use image;
4pub use wgpu;
5#[cfg(all(feature = "window", not(feature = "headless")))]
6pub use winit;
7
8pub use wgpu::Backends;
9pub use wgpu::CommandEncoder;
10pub use wgpu::LoadOp;
11pub use wgpu::MemoryHints;
12pub use wgpu::Operations;
13pub use wgpu::RenderPassColorAttachment;
14pub use wgpu::RenderPassDescriptor;
15pub use wgpu::TextureView;
16
17#[cfg(all(feature = "window", not(feature = "headless")))]
18pub use winit::dpi::*;
19#[cfg(all(feature = "window", not(feature = "headless")))]
20pub use winit::event::DeviceEvent;
21#[cfg(all(feature = "window", not(feature = "headless")))]
22pub use winit::event::ElementState;
23#[cfg(all(feature = "window", not(feature = "headless")))]
24pub use winit::event::Event;
25#[cfg(all(feature = "window", not(feature = "headless")))]
26pub use winit::event::KeyEvent;
27#[cfg(all(feature = "window", not(feature = "headless")))]
28pub use winit::event::MouseButton;
29#[cfg(all(feature = "window", not(feature = "headless")))]
30pub use winit::event::WindowEvent;
31#[cfg(all(feature = "window", not(feature = "headless")))]
32pub use winit::event_loop::EventLoop;
33#[cfg(all(feature = "window", not(feature = "headless")))]
34pub use winit::keyboard::Key;
35#[cfg(all(feature = "window", not(feature = "headless")))]
36pub use winit::keyboard::KeyCode;
37#[cfg(all(feature = "window", not(feature = "headless")))]
38pub use winit::window::Fullscreen;
39
40pub type Vector2 = glam::Vec2;
43pub type Vector3 = glam::Vec3;
45pub type Vector4 = glam::Vec4;
47pub type Matrix2 = glam::Mat2;
53pub type Matrix3 = glam::Mat3;
58pub type Matrix4 = glam::Mat4;
62pub type Quaternion = glam::Quat;
70
71#[cfg(all(feature = "window", not(feature = "headless")))]
73pub use crate::utils::winit_input_helper::WinitInputHelper as InputHelper;
74pub use bytemuck::Pod;
75pub use bytemuck::Zeroable;
76
77pub const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float;
79pub type Shaders = wgpu::RenderPipeline;
81pub type UniformBuffers = wgpu::BindGroup;
83pub type Textures = wgpu::BindGroup;
85pub type ShaderPrimitive = wgpu::PrimitiveTopology;
87pub type IndexFormat = wgpu::IndexFormat;
89pub type FrontFace = wgpu::FrontFace;
91pub type CullMode = wgpu::Face;
93pub type PolygonMode = wgpu::PolygonMode;
95pub type PowerPreference = wgpu::PowerPreference;