summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/eglfs/Evas_Engine_Eglfs.h
blob: 8746e415494415de5a2627d3f94118417246fd63 (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
#ifndef _EVAS_ENGINE_EGLFS_H
# define _EVAS_ENGINE_EGLFS_H

typedef enum _Evas_Engine_Info_Eglfs_Swap_Mode
{
   EVAS_ENGINE_EGLFS_SWAP_MODE_AUTO = 0,
   EVAS_ENGINE_EGLFS_SWAP_MODE_FULL = 1,
   EVAS_ENGINE_EGLFS_SWAP_MODE_COPY = 2,
   EVAS_ENGINE_EGLFS_SWAP_MODE_DOUBLE = 3,
   EVAS_ENGINE_EGLFS_SWAP_MODE_TRIPLE = 4,
   EVAS_ENGINE_EGLFS_SWAP_MODE_QUADRUPLE = 5
} Evas_Engine_Info_Eglfs_Swap_Mode;

typedef struct _Evas_Engine_Info_Eglfs Evas_Engine_Info_Eglfs;

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

   struct 
     {
        unsigned int rotation, depth;
        unsigned int crtc_id, conn_id, buffer_id;
        unsigned int format, flags;

        Eina_Bool destination_alpha : 1;
        Eina_Bool vsync : 1;
        Eina_Bool indirect : 1;
        unsigned char swap_mode : 4;
     } 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;
};

#endif