#[repr(C)]pub struct StaticTextures {
pub size: IntSize,
pub original_size: IntSize,
pub data: Slice<'static, u8>,
pub textures: Slice<'static, StaticTexture>,
}
Expand description
A texture is stored in read-only memory and may be composed of sub-textures.
Fields§
§size: IntSize
The total size of the image (this might not be the size of the full image as some transparent part are not part of any texture)
original_size: IntSize
The size of the image before the compiler applied any scaling
data: Slice<'static, u8>
The pixel data referenced by the textures
textures: Slice<'static, StaticTexture>
The list of textures
Trait Implementations§
Source§impl Clone for StaticTextures
impl Clone for StaticTextures
Source§fn clone(&self) -> StaticTextures
fn clone(&self) -> StaticTextures
Returns a copy 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 moreSource§impl Debug for StaticTextures
impl Debug for StaticTextures
Source§impl PartialEq for StaticTextures
impl PartialEq for StaticTextures
impl StructuralPartialEq for StaticTextures
Auto Trait Implementations§
impl Freeze for StaticTextures
impl RefUnwindSafe for StaticTextures
impl Send for StaticTextures
impl Sync for StaticTextures
impl Unpin for StaticTextures
impl UnwindSafe for StaticTextures
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