From dd7595a3475407a7fa96a97393bae8c5220e8762 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 4 Jan 2012 18:41:13 +1000 Subject: Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje. Note that embryo wont be used, but I'm not sure yet if you can build edje without it. --- .../evas/src/modules/engines/gl_sdl/evas_engine.h | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 libraries/evas/src/modules/engines/gl_sdl/evas_engine.h (limited to 'libraries/evas/src/modules/engines/gl_sdl/evas_engine.h') diff --git a/libraries/evas/src/modules/engines/gl_sdl/evas_engine.h b/libraries/evas/src/modules/engines/gl_sdl/evas_engine.h new file mode 100644 index 0000000..7d46720 --- /dev/null +++ b/libraries/evas/src/modules/engines/gl_sdl/evas_engine.h @@ -0,0 +1,73 @@ +#ifndef EVAS_ENGINE_H +#define EVAS_ENGINE_H + +#define _EVAS_ENGINE_SDL_H + +#include "config.h" +#include +#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) +# include +# include +# ifdef HAVE_SDL_FLAG_OPENGLES +# define EVAS_SDL_GL_FLAG SDL_OPENGLES +# else +# define EVAS_SDL_GL_FLAG SDL_OPENGL /* This probably won't work? */ +# endif +#else +# include +# define EVAS_SDL_GL_FLAG SDL_OPENGL +#endif +#include "evas_common.h" +#include "evas_private.h" +#include "evas_gl_common.h" +#include "Evas.h" +#include "Evas_Engine_GL_SDL.h" + +extern int _evas_engine_GL_SDL_log_dom ; +#ifdef ERR +# undef ERR +#endif +#define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_GL_SDL_log_dom, __VA_ARGS__) + +#ifdef DBG +# undef DBG +#endif +#define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_GL_SDL_log_dom, __VA_ARGS__) + +#ifdef INF +# undef INF +#endif +#define INF(...) EINA_LOG_DOM_INFO(_evas_engine_GL_SDL_log_dom, __VA_ARGS__) + +#ifdef WRN +# undef WRN +#endif +#define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_GL_SDL_log_dom, __VA_ARGS__) + +#ifdef CRIT +# undef CRIT +#endif +#define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_GL_SDL_log_dom, __VA_ARGS__) + +typedef struct _Render_Engine Render_Engine; +struct _Render_Engine +{ + Evas_Engine_Info_GL_SDL *info; + int w, h; + + Evas_Engine_GL_Context *gl_context; + struct { + int redraw : 1; + int drew : 1; + int x1, y1, x2, y2; + } draw; +#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) + EGLContext egl_context[1]; + EGLSurface egl_surface[1]; + EGLConfig egl_config; + EGLDisplay egl_disp; +#endif + +}; + +#endif -- cgit v1.1