#[repr(C)]pub struct StaticTexture {
pub rect: IntRect,
pub format: PixelFormat,
pub color: Color,
pub index: usize,
}
Expand description
Some raw pixel data which is typically stored in the binary
Fields§
§rect: IntRect
The position and size of the texture within the image
format: PixelFormat
The pixel format of this texture
color: Color
The color, for the alpha map ones
index: usize
index in the data array
Trait Implementations§
Source§impl Clone for StaticTexture
impl Clone for StaticTexture
Source§fn clone(&self) -> StaticTexture
fn clone(&self) -> StaticTexture
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 StaticTexture
impl Debug for StaticTexture
Source§impl PartialEq for StaticTexture
impl PartialEq for StaticTexture
impl StructuralPartialEq for StaticTexture
Auto Trait Implementations§
impl Freeze for StaticTexture
impl RefUnwindSafe for StaticTexture
impl Send for StaticTexture
impl Sync for StaticTexture
impl Unpin for StaticTexture
impl UnwindSafe for StaticTexture
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