Struct texture_packer::texture::memory_rgba8_texture::MemoryRGBA8Texture [] [src]

pub struct MemoryRGBA8Texture {
    // some fields omitted
}

Methods

impl MemoryRGBA8Texture

fn from_memory(buf: &[u8], w: u32, h: u32) -> MemoryRGBA8Texture

Trait Implementations

impl Texture for MemoryRGBA8Texture

type Pixel = RGBA8

fn width(&self) -> u32

fn height(&self) -> u32

fn get(&self, x: u32, y: u32) -> Option<RGBA8>

fn set(&mut self, x: u32, y: u32, val: RGBA8)

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