Struct ark_api_ffi::render_v1::Camera
source · [−]#[repr(C)]pub struct Camera {
pub view_from_world: RawIsoTransform,
pub fov_y: f32,
pub has_viewport: bool,
pub _pad: [u8; 3],
pub viewport: Rectangle,
}Fields
view_from_world: RawIsoTransformfov_y: f32has_viewport: bool_pad: [u8; 3]viewport: RectangleTrait Implementations
sourceimpl CheckedBitPattern for Camera
impl CheckedBitPattern for Camera
type Bits = CameraBits
type Bits = CameraBits
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more
sourcefn is_valid_bit_pattern(bits: &CameraBits) -> bool
fn is_valid_bit_pattern(bits: &CameraBits) -> bool
If this function returns true, then it must be valid to reinterpret bits as &Self.
impl Copy for Camera
impl NoUninit for Camera
Auto Trait Implementations
impl RefUnwindSafe for Camera
impl Send for Camera
impl Sync for Camera
impl Unpin for Camera
impl UnwindSafe for Camera
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more