Create separate renderer and framebuffer modules

This commit is contained in:
2025-10-18 17:43:22 +01:00
parent 72d73c2889
commit d975f5ed42
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