#[repr(C)]pub struct libra_image_gl_t {
pub handle: u32,
pub format: u32,
pub width: u32,
pub height: u32,
}Available on crate feature
runtime-opengl only.Expand description
OpenGL parameters for an image.
Fields§
§handle: u32A texture GLuint to the texture.
format: u32The format of the texture.
width: u32The width of the texture.
height: u32The height of the texture.
Trait Implementations§
Source§impl From<libra_image_gl_t> for GLImage
impl From<libra_image_gl_t> for GLImage
Source§fn from(value: libra_image_gl_t) -> Self
fn from(value: libra_image_gl_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for libra_image_gl_t
impl RefUnwindSafe for libra_image_gl_t
impl Send for libra_image_gl_t
impl Sync for libra_image_gl_t
impl Unpin for libra_image_gl_t
impl UnwindSafe for libra_image_gl_t
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> 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