Struct rust_raylib::ffi::Texture
source · #[repr(C)]pub struct Texture {
pub id: c_uint,
pub width: c_int,
pub height: c_int,
pub mipmaps: c_int,
pub format: c_int,
}Expand description
Texture, tex data stored in GPU memory (VRAM)
Fields§
§id: c_uintOpenGL texture id
width: c_intTexture base width
height: c_intTexture base height
mipmaps: c_intMipmap levels, 1 by default
format: c_intData format (PixelFormat type)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnwindSafe for Texture
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