Create separate renderer and framebuffer modules
This commit is contained in:
17
fb.h
Normal file
17
fb.h
Normal 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
|
||||
Reference in New Issue
Block a user