forked from AbleOS/ableos_userland
19 lines
306 B
Rust
19 lines
306 B
Rust
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) {}
|
|
}
|