neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

fb.h (866B)


      1 #ifndef SWC_FB_H
      2 #define SWC_FB_H
      3 
      4 #include "backend.h"
      5 
      6 #include <pixman.h>
      7 #include <stdbool.h>
      8 #include <stddef.h>
      9 #include <stdint.h>
     10 
     11 struct wl_list;
     12 struct wld_buffer;
     13 
     14 struct swc_fb {
     15 	struct swc_backend backend;
     16 	uint32_t width;
     17 	uint32_t height;
     18 	uint32_t *pixels;
     19 	size_t pitch;
     20 };
     21 
     22 extern struct swc_fb swc_fb;
     23 
     24 bool fb_initialize(void);
     25 void fb_finalize(void);
     26 bool fb_create_screens(struct wl_list *screens);
     27 /* damage is what the frame changed, NULL when unknown */
     28 bool fb_present(struct wld_buffer *buffer, int32_t x, int32_t y,
     29                 const pixman_region32_t *damage);
     30 
     31 bool framebuffer_initialize(struct swc_fb *fb);
     32 void framebuffer_finalize(struct swc_fb *fb);
     33 /* the copy's pixels within region onto the screen */
     34 bool framebuffer_present(struct swc_fb *fb, const pixman_region32_t *region);
     35 const char *framebuffer_name(void);
     36 
     37 #endif