boucane/src/drivers/framebuffer.hpp
2021-04-26 12:37:34 +02:00

26 lines
No EOL
423 B
C++

#pragma once
#include "include/boucane.hpp"
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();