Struct sixtyfps_corelib::graphics::StaticTexture
source · [−]#[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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StaticTexture
impl Send for StaticTexture
impl Sync for StaticTexture
impl Unpin for StaticTexture
impl UnwindSafe for StaticTexture
Blanket Implementations
Mutably borrows from an owned value. Read more