#[repr(C)]pub struct TextureApi {
pub get: RawTextureGet,
pub get_or_create_from_file: RawTextureGetOrCreateFromFile,
pub get_or_create_from_resource: RawTextureGetOrCreateFromResource,
pub get_or_create_from_url: RawTextureGetOrCreateFromUrl,
pub get_or_create_from_memory: RawTextureGetOrCreateFromMemory,
pub load_from_file: RawTextureLoadFromFile,
pub load_from_resource: RawTextureLoadFromResource,
pub load_from_url: RawTextureLoadFromUrl,
pub load_from_memory: RawTextureLoadFromMemory,
}Fields§
§get: RawTextureGetReturns a pointer to the Texture or null if it does not exist.
get_or_create_from_file: RawTextureGetOrCreateFromFileReturns a pointer to the Texture or creates it from the file if it does not exist.
get_or_create_from_resource: RawTextureGetOrCreateFromResourceReturns a pointer to the Texture or creates it from the resource if it does not exist.
get_or_create_from_url: RawTextureGetOrCreateFromUrlReturns a pointer to the Texture or creates it from the URL if it does not exist.
get_or_create_from_memory: RawTextureGetOrCreateFromMemoryReturns a pointer to the Texture or creates it from the memory if it does not exist.
load_from_file: RawTextureLoadFromFileCreates a texture from the file and passes it to the callback when finished.
load_from_resource: RawTextureLoadFromResourceCreates a texture from the resource and passes it to the callback when finished.
load_from_url: RawTextureLoadFromUrlCreates a texture from the URL and passes it to the callback when finished.
load_from_memory: RawTextureLoadFromMemoryCreates a texture from the memory and passes it to the callback when finished.
Trait Implementations§
Source§impl Clone for TextureApi
impl Clone for TextureApi
Source§fn clone(&self) -> TextureApi
fn clone(&self) -> TextureApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextureApi
impl RefUnwindSafe for TextureApi
impl Send for TextureApi
impl Sync for TextureApi
impl Unpin for TextureApi
impl UnwindSafe for TextureApi
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