summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-04-25 17:08:37 +0900
committerHermet Park <hermetpark@gmail.com>2019-04-25 17:08:37 +0900
commit815535eebe25b5cec95a7ee676d345c4d7c4ff61 (patch)
tree66dab8bc4a1879b5fcf9916dc3219f95849b9575 /src/lib/ecore_evas
parent53599a8d399c21b467316033dd57907188339623 (diff)
ecore_evas: generalize option defines.
There some engine option defines could be generalized from the window system since those options could be used through wayland, x11 both, and probably so on.
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/Ecore_Evas.h44
1 files changed, 30 insertions, 14 deletions
diff --git a/src/lib/ecore_evas/Ecore_Evas.h b/src/lib/ecore_evas/Ecore_Evas.h
index b9cb439f51..d59900d788 100644
--- a/src/lib/ecore_evas/Ecore_Evas.h
+++ b/src/lib/ecore_evas/Ecore_Evas.h
@@ -133,6 +133,22 @@ typedef enum _Ecore_Evas_Engine_Type
133 ECORE_EVAS_ENGINE_OPENGL_DRM 133 ECORE_EVAS_ENGINE_OPENGL_DRM
134} Ecore_Evas_Engine_Type; 134} Ecore_Evas_Engine_Type;
135 135
136#define ECORE_EVAS_OPT_NONE 0
137#define ECORE_EVAS_OPT_INDIRECT 1
138#define ECORE_EVAS_OPT_VSYNC 2
139#define ECORE_EVAS_OPT_SWAP_MODE 3
140#define ECORE_EVAS_OPT_GL_DEPTH 4
141#define ECORE_EVAS_OPT_GL_STENCIL 5
142#define ECORE_EVAS_OPT_GL_MSAA 6
143#define ECORE_EVAS_OPT_LAST 7
144
145#define ECORE_EVAS_SWAP_MODE_AUTO 0
146#define ECORE_EVAS_SWAP_MODE_FULL 1
147#define ECORE_EVAS_SWAP_MODE_COPY 2
148#define ECORE_EVAS_SWAP_MODE_DOUBLE 3
149#define ECORE_EVAS_SWAP_MODE_TRIPLE 4
150
151
136/** 152/**
137 * @enum _Ecore_Evas_Avoid_Damage_Type 153 * @enum _Ecore_Evas_Avoid_Damage_Type
138 * This option causes updates of the Ecore_Evas to be done on a pixmap, and 154 * This option causes updates of the Ecore_Evas to be done on a pixmap, and
@@ -1310,20 +1326,20 @@ EAPI Ecore_Evas *ecore_evas_software_x11_pixmap_new(const char *disp_name, E
1310 */ 1326 */
1311EAPI Ecore_X_Pixmap ecore_evas_software_x11_pixmap_get(const Ecore_Evas *ee); 1327EAPI Ecore_X_Pixmap ecore_evas_software_x11_pixmap_get(const Ecore_Evas *ee);
1312 1328
1313#define ECORE_EVAS_GL_X11_OPT_NONE 0 1329#define ECORE_EVAS_GL_X11_OPT_NONE ECORE_EVAS_OPT_NONE
1314#define ECORE_EVAS_GL_X11_OPT_INDIRECT 1 1330#define ECORE_EVAS_GL_X11_OPT_INDIRECT ECORE_EVAS_OPT_INDIRECT
1315#define ECORE_EVAS_GL_X11_OPT_VSYNC 2 1331#define ECORE_EVAS_GL_X11_OPT_VSYNC ECORE_EVAS_OPT_VSYNC
1316#define ECORE_EVAS_GL_X11_OPT_SWAP_MODE 3 1332#define ECORE_EVAS_GL_X11_OPT_SWAP_MODE ECORE_EVAS_OPT_SWAP_MODE
1317#define ECORE_EVAS_GL_X11_OPT_GL_DEPTH 4 1333#define ECORE_EVAS_GL_X11_OPT_GL_DEPTH ECORE_EVAS_OPT_GL_DEPTH
1318#define ECORE_EVAS_GL_X11_OPT_GL_STENCIL 5 1334#define ECORE_EVAS_GL_X11_OPT_GL_STENCIL ECORE_EVAS_OPT_GL_STENCIL
1319#define ECORE_EVAS_GL_X11_OPT_GL_MSAA 6 1335#define ECORE_EVAS_GL_X11_OPT_GL_MSAA ECORE_EVAS_OPT_GL_MSAA
1320#define ECORE_EVAS_GL_X11_OPT_LAST 7 1336#define ECORE_EVAS_GL_X11_OPT_LAST ECORE_EVAS_OPT_LAST
1321 1337
1322#define ECORE_EVAS_GL_X11_SWAP_MODE_AUTO 0 1338#define ECORE_EVAS_GL_X11_SWAP_MODE_AUTO ECORE_EVAS_SWAP_MODE_AUTO
1323#define ECORE_EVAS_GL_X11_SWAP_MODE_FULL 1 1339#define ECORE_EVAS_GL_X11_SWAP_MODE_FULL ECORE_EVAS_SWAP_MODE_FULL
1324#define ECORE_EVAS_GL_X11_SWAP_MODE_COPY 2 1340#define ECORE_EVAS_GL_X11_SWAP_MODE_COPY ECORE_EVAS_SWAP_MODE_COPY
1325#define ECORE_EVAS_GL_X11_SWAP_MODE_DOUBLE 3 1341#define ECORE_EVAS_GL_X11_SWAP_MODE_DOUBLE ECORE_EVAS_SWAP_MODE_DOUBLE
1326#define ECORE_EVAS_GL_X11_SWAP_MODE_TRIPLE 4 1342#define ECORE_EVAS_GL_X11_SWAP_MODE_TRIPLE ECORE_EVAS_SWAP_MODE_TRIPLE
1327 1343
1328/** 1344/**
1329 * @brief Creates Ecore_Evas using opengl x11. 1345 * @brief Creates Ecore_Evas using opengl x11.