[−][src]Trait pixel_engine::traits::ScreenTrait
The Basic Drawing Trait All that is needed to draw one pixel one the target
Required methods
fn get_size(&mut self) -> (usize, usize)
Get the size of the target
fn get_textsheet(&self) -> &Sprite
Get The textsheet (A Sprite
)
fn clear(&mut self, col: Color)
Clear the Screen With the given Color
fn draw(&mut self, x: u32, y: u32, col: Color)
Set the pixel data at the given coordinates to the given Color
Will use the current PixelMode
fn get_pixel(&self, x: u32, y: u32) -> Color
Get the Pixel Data at the given coordinates
fn get_pixel_mode(&self) -> PixelMode
Return the PixelMode
fn set_pixel_mode(&mut self, mode: PixelMode)
Set the PixelMode
fn get_blend_factor(&self) -> f32
Get the Blend Factor Used for alpha calculations
fn set_blend_factor(&mut self, f: f32)
Set the Blend Factor Used for alpha calculations