#[repr(C)]pub struct GLFWimage {
pub width: c_int,
pub height: c_int,
pub pixels: *mut c_uchar,
}Expand description
@brief Image data.
This describes a single 2D image. See the documentation for each related function what the expected pixel format is.
@sa @ref cursor_custom @sa @ref window_icon
@since Added in version 2.1. @glfw3 Removed format and bytes-per-pixel members.
@ingroup window
Fields§
§width: c_intThe width, in pixels, of this image.
height: c_intThe height, in pixels, of this image.
pixels: *mut c_ucharThe pixel data of this image, arranged left-to-right, top-to-bottom.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GLFWimage
impl RefUnwindSafe for GLFWimage
impl !Send for GLFWimage
impl !Sync for GLFWimage
impl Unpin for GLFWimage
impl UnwindSafe for GLFWimage
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