#[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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more