forked from enlightenment/efl
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.
This commit is contained in:
parent
53599a8d39
commit
815535eebe
|
@ -133,6 +133,22 @@ typedef enum _Ecore_Evas_Engine_Type
|
|||
ECORE_EVAS_ENGINE_OPENGL_DRM
|
||||
} Ecore_Evas_Engine_Type;
|
||||
|
||||
#define ECORE_EVAS_OPT_NONE 0
|
||||
#define ECORE_EVAS_OPT_INDIRECT 1
|
||||
#define ECORE_EVAS_OPT_VSYNC 2
|
||||
#define ECORE_EVAS_OPT_SWAP_MODE 3
|
||||
#define ECORE_EVAS_OPT_GL_DEPTH 4
|
||||
#define ECORE_EVAS_OPT_GL_STENCIL 5
|
||||
#define ECORE_EVAS_OPT_GL_MSAA 6
|
||||
#define ECORE_EVAS_OPT_LAST 7
|
||||
|
||||
#define ECORE_EVAS_SWAP_MODE_AUTO 0
|
||||
#define ECORE_EVAS_SWAP_MODE_FULL 1
|
||||
#define ECORE_EVAS_SWAP_MODE_COPY 2
|
||||
#define ECORE_EVAS_SWAP_MODE_DOUBLE 3
|
||||
#define ECORE_EVAS_SWAP_MODE_TRIPLE 4
|
||||
|
||||
|
||||
/**
|
||||
* @enum _Ecore_Evas_Avoid_Damage_Type
|
||||
* 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
|
|||
*/
|
||||
EAPI Ecore_X_Pixmap ecore_evas_software_x11_pixmap_get(const Ecore_Evas *ee);
|
||||
|
||||
#define ECORE_EVAS_GL_X11_OPT_NONE 0
|
||||
#define ECORE_EVAS_GL_X11_OPT_INDIRECT 1
|
||||
#define ECORE_EVAS_GL_X11_OPT_VSYNC 2
|
||||
#define ECORE_EVAS_GL_X11_OPT_SWAP_MODE 3
|
||||
#define ECORE_EVAS_GL_X11_OPT_GL_DEPTH 4
|
||||
#define ECORE_EVAS_GL_X11_OPT_GL_STENCIL 5
|
||||
#define ECORE_EVAS_GL_X11_OPT_GL_MSAA 6
|
||||
#define ECORE_EVAS_GL_X11_OPT_LAST 7
|
||||
#define ECORE_EVAS_GL_X11_OPT_NONE ECORE_EVAS_OPT_NONE
|
||||
#define ECORE_EVAS_GL_X11_OPT_INDIRECT ECORE_EVAS_OPT_INDIRECT
|
||||
#define ECORE_EVAS_GL_X11_OPT_VSYNC ECORE_EVAS_OPT_VSYNC
|
||||
#define ECORE_EVAS_GL_X11_OPT_SWAP_MODE ECORE_EVAS_OPT_SWAP_MODE
|
||||
#define ECORE_EVAS_GL_X11_OPT_GL_DEPTH ECORE_EVAS_OPT_GL_DEPTH
|
||||
#define ECORE_EVAS_GL_X11_OPT_GL_STENCIL ECORE_EVAS_OPT_GL_STENCIL
|
||||
#define ECORE_EVAS_GL_X11_OPT_GL_MSAA ECORE_EVAS_OPT_GL_MSAA
|
||||
#define ECORE_EVAS_GL_X11_OPT_LAST ECORE_EVAS_OPT_LAST
|
||||
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_AUTO 0
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_FULL 1
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_COPY 2
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_DOUBLE 3
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_TRIPLE 4
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_AUTO ECORE_EVAS_SWAP_MODE_AUTO
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_FULL ECORE_EVAS_SWAP_MODE_FULL
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_COPY ECORE_EVAS_SWAP_MODE_COPY
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_DOUBLE ECORE_EVAS_SWAP_MODE_DOUBLE
|
||||
#define ECORE_EVAS_GL_X11_SWAP_MODE_TRIPLE ECORE_EVAS_SWAP_MODE_TRIPLE
|
||||
|
||||
/**
|
||||
* @brief Creates Ecore_Evas using opengl x11.
|
||||
|
|
Loading…
Reference in New Issue