[−][src]Trait texture_packer::texture::Texture
Associated Types
Loading content...Required methods
fn width(&self) -> u32
fn height(&self) -> u32
fn get(&self, x: u32, y: u32) -> Option<Self::Pixel>
fn set(&mut self, x: u32, y: u32, val: Self::Pixel)
Provided methods
fn get_rotated(&self, x: u32, y: u32) -> Option<Self::Pixel>
fn is_column_transparent(&self, col: u32) -> bool
fn is_row_transparent(&self, row: u32) -> bool
Implementations on Foreign Types
impl<P: Pixel> Texture for Box<dyn Texture<Pixel = P> + 'static>
[src]
type Pixel = P
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
fn get(&self, x: u32, y: u32) -> Option<P>
[src]
fn set(&mut self, x: u32, y: u32, val: P)
[src]
Implementors
impl Texture for MemoryRGBA8Texture
[src]
type Pixel = RGBA8
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
fn get(&self, x: u32, y: u32) -> Option<RGBA8>
[src]
fn set(&mut self, x: u32, y: u32, val: RGBA8)
[src]
impl<'a, Pix, P, T: Clone> Texture for TexturePacker<'a, T, P> where
Pix: Pixel,
P: Packer<Pixel = Pix>,
T: Texture<Pixel = Pix>,
[src]
Pix: Pixel,
P: Packer<Pixel = Pix>,
T: Texture<Pixel = Pix>,