pub trait Camera {
// Required method
fn view_proj(&self) -> [[f32; 4]; 4];
}Expand description
A camera with a view_proj matrix, implemented by both crate::Camera2D and
Camera3D so a pipeline can be fed by either.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".