Trait pixel_engine::graphics::DrawSpriteTrait
source · pub trait DrawSpriteTrait {
fn get_pixel(&self, pos: Vec2d<i32>) -> Option<Color>;
fn set_pixel(&mut self, pos: Vec2d<i32>, col: Color);
fn size(&self) -> Vec2d<u32>;
unsafe fn get_pixel_unchecked(&self, pos: Vec2d<u32>) -> Color;
unsafe fn set_pixel_unchecked(&mut self, pos: Vec2d<u32>, col: Color);
}