ableos_userland/libraries/able_graphics_library/src/raw_pixel/mod.rs

19 lines
306 B
Rust
Raw Normal View History

2023-03-30 01:31:55 -05:00
use alloc::vec::Vec;
pub struct Color {
r: u8,
g: u8,
b: u8,
a: u8,
}
pub struct PixelBuffer {
width: usize,
height: usize,
data: Vec<Color>,
}
impl PixelBuffer {
pub fn xy_calc(x: usize, y: isize) {}
pub fn blit(&mut self, x: isize, y: isize, buff: PixelBuffer) {}
}