Type Alias rust_raylib::ffi::Camera

source ·
pub type Camera = Camera3D;
Expand description

Camera type fallback, defaults to Camera3D

Aliased Type§

struct Camera {
    pub position: Vector3,
    pub target: Vector3,
    pub up: Vector3,
    pub fovy: f32,
    pub projection: i32,
}

Fields§

§position: Vector3

Camera position

§target: Vector3

Camera target it looks-at

§up: Vector3

Camera up vector (rotation over its axis)

§fovy: f32

Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic

§projection: i32

Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC

Trait Implementations§

source§

impl Clone for Camera3D

source§

fn clone(&self) -> Camera3D

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Camera3D

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Camera3D> for Camera3D

source§

fn from(val: Camera3D) -> Self

Converts to this type from the input type.