File: gfx.h

package info (click to toggle)
fbi 2.14-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,044 kB
  • sloc: ansic: 24,426; sh: 138; perl: 16; makefile: 8
file content (29 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdbool.h>
#include <inttypes.h>

#include <epoxy/egl.h>

typedef struct gfxstate gfxstate;

struct gfxstate {
    /* info */
    uint32_t hdisplay;
    uint32_t vdisplay;
    uint32_t stride;
    uint8_t  *mem;
    uint8_t  *mem2;

    uint32_t bits_per_pixel;
    uint32_t rlen, glen, blen, tlen;
    uint32_t roff, goff, boff, toff;

    /* egl */
    EGLDisplay dpy;
    EGLContext ctx;
    EGLSurface surface;

    /* calls */
    void (*restore_display)(void);
    void (*cleanup_display)(void);
    void (*flush_display)(bool second);
};