1#ifndef SWC_FB_H
2#define SWC_FB_H
3
4#include "backend.h"
5
6#include <stdbool.h>
7#include <stddef.h>
8#include <stdint.h>
9
10struct wl_list;
11struct wld_buffer;
12
13struct swc_fb {
14 struct swc_backend backend;
15 uint32_t width;
16 uint32_t height;
17 uint32_t *pixels;
18 size_t pitch;
19};
20
21extern struct swc_fb swc_fb;
22
23bool fb_initialize(void);
24void fb_finalize(void);
25bool fb_create_screens(struct wl_list *screens);
26bool fb_present(struct wld_buffer *buffer, int32_t x, int32_t y);
27
28bool framebuffer_initialize(struct swc_fb *fb);
29void framebuffer_finalize(struct swc_fb *fb);
30bool framebuffer_present(struct swc_fb *fb);
31const char *framebuffer_name(void);
32
33#endif