Struct GLFWimage
#[repr(C)]pub struct GLFWimage {
pub width: i32,
pub height: i32,
pub pixels: *mut u8,
}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: i32The width, in pixels, of this image.
height: i32The height, in pixels, of this image.
pixels: *mut u8The 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)