#[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,
}
👎Deprecated: Use World API camera instead, this is no longer supported
Fields§
§view_from_world: RawIsoTransform
👎Deprecated: Use World API camera instead, this is no longer supported
§fov_y: f32
👎Deprecated: Use World API camera instead, this is no longer supported
§has_viewport: bool
👎Deprecated: Use World API camera instead, this is no longer supported
§_pad: [u8; 3]
👎Deprecated: Use World API camera instead, this is no longer supported
§viewport: Rectangle
👎Deprecated: Use World API camera instead, this is no longer supported
Trait Implementations§
Source§impl CheckedBitPattern for Camera
impl CheckedBitPattern for Camera
Source§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
.Source§fn 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 Freeze for Camera
impl RefUnwindSafe for Camera
impl Send for Camera
impl Sync for Camera
impl Unpin for Camera
impl UnwindSafe for Camera
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