pub(crate) struct DefaultCamera;
pub struct Camera {
pub(crate) left: f32,
pub(crate) right: f32,
pub(crate) top: f32,
pub(crate) bottom: f32,
pub(crate) near: f32,
pub(crate) far: f32,
pub(crate) dpi: f64,
}
impl Camera {
pub fn new(width: f32, height: f32) -> Self {
Self {
left: 0.,
right: width,
top: 0.,
bottom: -1. * height,
near: 0.0,
far: 100.,
dpi: 1.0,
}
}
}