[−][src]Struct macroquad::camera::Camera3D
Fields
position: Vec3
Camera position
target: Vec3
Camera target it looks-at
up: Vec3
Camera up vector (rotation over its axis)
fovy: f32
Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic
aspect: Option<f32>
Screen aspect ratio By default aspect is calculated with screen_width() / screen_height() on each frame
projection: Projection
Camera projection type, perspective or orthographics
render_target: Option<RenderTarget>
If "render_target" is set - camera will render to texture otherwise to the screen
Trait Implementations
impl Camera for Camera3D
[src]
fn matrix(&self) -> Mat4
[src]
fn depth_enabled(&self) -> bool
[src]
fn render_pass(&self) -> Option<RenderPass>
[src]
impl Clone for Camera3D
[src]
impl Copy for Camera3D
[src]
impl Debug for Camera3D
[src]
impl Default for Camera3D
[src]
Auto Trait Implementations
impl RefUnwindSafe for Camera3D
impl Send for Camera3D
impl Sync for Camera3D
impl Unpin for Camera3D
impl UnwindSafe for Camera3D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,