pub struct BasicFramebuffer {
pub fb_pointer: *mut u32,
pub pixels_per_row: usize,
pub width: usize,
pub height: usize,
}Expand description
A thin wrapper around the bootloader-provided framebuffer
Fields§
§fb_pointer: *mut u32§pixels_per_row: usize§width: usize§height: usizeImplementations§
Source§impl BasicFramebuffer
impl BasicFramebuffer
Sourcepub fn new(fb: &FramebufferInfo) -> Self
pub fn new(fb: &FramebufferInfo) -> Self
Constructor; returns a BasicFramebuffer constructed from FramebufferInfo
Trait Implementations§
impl Send for BasicFramebuffer
Safety: BasicFramebuffer::fb_pointer points to the valid limine-allocated fb which has a static lifetime