2021-04-21 12:23:54 +02:00
|
|
|
#pragma once
|
2021-04-19 19:06:28 +02:00
|
|
|
|
2021-04-26 12:37:34 +02:00
|
|
|
#include "include/boucane.hpp"
|
2021-04-19 19:06:28 +02:00
|
|
|
|
2021-04-26 12:37:34 +02:00
|
|
|
typedef struct {
|
|
|
|
u32 pitch;
|
|
|
|
u32 depth;
|
|
|
|
u64 location;
|
|
|
|
u32 width;
|
|
|
|
u32 height;
|
|
|
|
} __attribute__((packed)) FB_CFG;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
u32 x,y;
|
|
|
|
u8 r,g,b,a;
|
|
|
|
} __attribute__((packed)) FB_PIXEL;
|
|
|
|
|
|
|
|
extern FB_CFG fb_cfg;
|
|
|
|
|
|
|
|
void framebuffer_init(FB_CFG config);
|
|
|
|
|
|
|
|
void framebuffer_draw(FB_PIXEL p);
|
|
|
|
|
|
|
|
void framebuffer_scrollup(u32 npixel);
|
|
|
|
|
|
|
|
void framebuffer_clear();
|