#[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_uint
OpenGL texture id
width: c_int
Texture base width
height: c_int
Texture base height
mipmaps: c_int
Mipmap levels, 1 by default
format: c_int
Data format (PixelFormat type)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Texture
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