Create separate renderer and framebuffer modules

This commit is contained in:
Camden Dixie O'Brien
2025-10-13 13:56:11 +01:00
parent cb68a98347
commit 045d0e6085
6 changed files with 212 additions and 128 deletions

17
fb.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef FB_H
#define FB_H
#include <xf86drmMode.h>
typedef struct {
uint32_t *buf;
uint32_t handle;
uint32_t id;
uint32_t pitch;
uint32_t size;
} fb_info_t;
fb_info_t fb_init(int drm_fd, drmModeModeInfo mode);
void fb_cleanup(int drm_fd, fb_info_t fb);
#endif