summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_sdl/evas_engine.h
diff options
context:
space:
mode:
authorxcomputerman <xcomputerman>2010-01-29 02:31:37 +0000
committerxcomputerman <xcomputerman@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2010-01-29 02:31:37 +0000
commitcdcc000942064d21c1f685074c3b5ff4453f17dc (patch)
treefa00e05f99b6029ca045ef588d96cff8bb1f79d8 /legacy/evas/src/modules/engines/gl_sdl/evas_engine.h
parenta5a6b927d02503363278f72fecfd671020e2c5df (diff)
Add OpenGL SDL engine
SVN revision: 45674
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/gl_sdl/evas_engine.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/legacy/evas/src/modules/engines/gl_sdl/evas_engine.h b/legacy/evas/src/modules/engines/gl_sdl/evas_engine.h
new file mode 100644
index 0000000000..92e2786274
--- /dev/null
+++ b/legacy/evas/src/modules/engines/gl_sdl/evas_engine.h
@@ -0,0 +1,78 @@
1#ifndef EVAS_ENGINE_H
2#define EVAS_ENGINE_H
3
4#include "config.h"
5#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
6# if defined(GLES_VARIETY_S3C6410)
7# include <EGL/egl.h>
8# include <GLES2/gl2.h>
9# elif defined(GLES_VARIETY_SGX)
10# include <EGL/egl.h>
11# include <GLES2/gl2.h>
12# include <GLES2/gl2ext.h>
13# endif
14# ifdef HAVE_SDL_FLAG_OPENGLES
15# define EVAS_SDL_GL_FLAG SDL_OPENGLES
16# else
17# define EVAS_SDL_GL_FLAG SDL_OPENGL /* This probably won't work? */
18# endif
19#else
20# define EVAS_SDL_GL_FLAG SDL_OPENGL
21#endif
22#include <SDL/SDL.h>
23#include <SDL/SDL_opengl.h>
24#include <GL/gl.h>
25#include "evas_common.h"
26#include "evas_private.h"
27#include "evas_gl_common.h"
28#include "Evas.h"
29#include "Evas_Engine_GL_SDL.h"
30
31extern int _evas_engine_GL_SDL_log_dom ;
32#ifdef ERR
33# undef ERR
34#endif
35#define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
36
37#ifdef DBG
38# undef DBG
39#endif
40#define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
41
42#ifdef INF
43# undef INF
44#endif
45#define INF(...) EINA_LOG_DOM_INFO(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
46
47#ifdef WRN
48# undef WRN
49#endif
50#define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
51
52#ifdef CRIT
53# undef CRIT
54#endif
55#define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
56
57typedef struct _Render_Engine Render_Engine;
58struct _Render_Engine
59{
60 Evas_Engine_Info_GL_SDL *info;
61 int w, h;
62
63 Evas_GL_Context *gl_context;
64 struct {
65 int redraw : 1;
66 int drew : 1;
67 int x1, y1, x2, y2;
68 } draw;
69#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
70 EGLContext egl_context[1];
71 EGLSurface egl_surface[1];
72 EGLConfig egl_config;
73 EGLDisplay egl_disp;
74#endif
75
76};
77
78#endif