pub struct Camera2D { /* private fields */ }Implementations§
Source§impl Camera2D
impl Camera2D
pub fn new(device: &Device, fov_deg: f32, aspect_ratio: f32, speed: f32) -> Self
pub fn to_raw(&self) -> [[f32; 4]; 4]
pub fn buffer(&self) -> BufferSlice<'_>
pub fn bind_group(&self) -> &BindGroup
pub fn bind_group_layout(&self) -> &BindGroupLayout
pub fn position(&self) -> Vector3<f32>
Auto Trait Implementations§
impl !Freeze for Camera2D
impl !RefUnwindSafe for Camera2D
impl Send for Camera2D
impl Sync for Camera2D
impl Unpin for Camera2D
impl !UnwindSafe for Camera2D
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more