pub struct Texture {
pub handle: u32,
}Expand description
A 2-D GPU texture.
Created by GfxContext::create_texture_rgba or GfxContext::texture_from_mc.
Must be deleted with GfxContext::delete_texture when you own it
(do not delete handles from texture_from_mc — Minecraft owns those).
Fields§
§handle: u32Trait Implementations§
impl Copy for Texture
impl Eq for Texture
impl StructuralPartialEq for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnsafeUnpin 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