aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h
blob: b593d482dd42a951f05b77081295860da7616dfb (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _EVAS_ENGINE_WAYLAND_EGL_H
# define _EVAS_ENGINE_WAYLAND_EGL_H

# define EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_EXISTS 1

typedef struct _Evas_Engine_Info_Wayland_Egl Evas_Engine_Info_Wayland_Egl;

typedef enum _Evas_Engine_Info_Wayland_Egl_Swap_Mode
{
   EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_AUTO = 0,
   EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_FULL = 1,
   EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_COPY = 2,
   EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_DOUBLE = 3,
   EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_TRIPLE = 4
} Evas_Engine_Info_Wayland_Egl_Swap_Mode;

struct _Evas_Engine_Info_Wayland_Egl
{
   /* PRIVATE - don't mess with this baby or evas will poke its tongue out
    * at you and make nasty noises */
   Evas_Engine_Info magic;

   /* engine specific data & parameters it needs to set up */
   struct 
     {
        struct wl_display *display;
        struct wl_surface *surface;
        void *compositor;
        void *subcompositor;
        int depth, screen, rotation, edges;
        unsigned int destination_alpha : 1;
     } info;

   struct 
     {
        void (*pre_swap) (void *data, Evas *evas);
        void (*post_swap) (void *data, Evas *evas);
        void *data;
     } callback;

   /* non-blocking or blocking mode */
   Evas_Engine_Render_Mode render_mode;

   unsigned char vsync : 1;
   unsigned char indirect : 1;
   unsigned char swap_mode : 4;
};

#endif