Calzone-UI/inc/fbd/fbd.h
2024-02-22 21:45:19 -07:00

19 lines
241 B
C

#pragma once
#include <stdint.h>
struct framebuf {
uint32_t xres;
uint32_t yres;
uint32_t size;
int fd;
uint16_t* buf;
};
int open_fb(framebuf* fb, const char* const dev);
void close_fb(framebuf* fb);
void clear_fb(framebuf* fb);