forked from Bananymous/banan-os
17 lines
225 B
C
17 lines
225 B
C
|
#pragma once
|
||
|
|
||
|
#include "Utils.h"
|
||
|
|
||
|
struct Framebuffer
|
||
|
{
|
||
|
int fd;
|
||
|
uint32_t* mmap;
|
||
|
int32_t width;
|
||
|
int32_t height;
|
||
|
uint8_t bpp;
|
||
|
|
||
|
Rectangle area() const { return { 0, 0, width, height }; }
|
||
|
};
|
||
|
|
||
|
Framebuffer open_framebuffer();
|