Struct classicube_sys::OwnedTexture
source · pub struct OwnedTexture { /* private fields */ }
Implementations§
source§impl OwnedTexture
impl OwnedTexture
pub fn new( bmp: &mut Bitmap, coords: (c_short, c_short), size: (cc_uint16, cc_uint16), uv: TextureRec, ) -> Self
pub fn as_texture(&self) -> &Texture
pub fn as_texture_mut(&mut self) -> &mut Texture
sourcepub unsafe fn get_texture(&self) -> Texture
pub unsafe fn get_texture(&self) -> Texture
§Safety
The OwnedTexture
needs to live longer than the Texture
return here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedTexture
impl RefUnwindSafe for OwnedTexture
impl !Send for OwnedTexture
impl !Sync for OwnedTexture
impl Unpin for OwnedTexture
impl UnwindSafe for OwnedTexture
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