#[repr(C)]pub struct Image {
pub data: *mut c_void,
pub width: c_int,
pub height: c_int,
pub mipmaps: c_int,
pub format: c_int,
}
Expand description
Image, pixel data stored in CPU memory (RAM)
Fields§
§data: *mut c_void
Image raw data
width: c_int
Image base width
height: c_int
Image base height
mipmaps: c_int
Mipmap levels, 1 by default
format: c_int
Data format (PixelFormat type)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl !Send for Image
impl !Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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