aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/modules/engines/gl_sdl
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_sdl')
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h24
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/Makefile.am46
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/Makefile.in796
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/evas_engine.c1081
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/evas_engine.h73
5 files changed, 2020 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h b/libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h
new file mode 100644
index 0000000..3804aa0
--- /dev/null
+++ b/libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h
@@ -0,0 +1,24 @@
1#ifndef _EVAS_ENGINE_GL_SDL_H
2#define _EVAS_ENGINE_GL_SDL_H
3
4#include <SDL/SDL.h>
5
6typedef struct _Evas_Engine_Info_GL_SDL Evas_Engine_Info_GL_SDL;
7
8struct _Evas_Engine_Info_GL_SDL
9{
10 /* PRIVATE - don't mess with this baby or evas will poke its tongue out */
11 /* at you and make nasty noises */
12 Evas_Engine_Info magic;
13
14 /* engine specific data & parameters it needs to set up */
15 struct {
16 int rotation;
17 int fullscreen : 1;
18 int noframe : 1;
19 } flags;
20
21};
22#endif
23
24
diff --git a/libraries/evas/src/modules/engines/gl_sdl/Makefile.am b/libraries/evas/src/modules/engines/gl_sdl/Makefile.am
new file mode 100644
index 0000000..abdeaf0
--- /dev/null
+++ b/libraries/evas/src/modules/engines/gl_sdl/Makefile.am
@@ -0,0 +1,46 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I. \
6-I$(top_srcdir)/src/lib \
7-I$(top_srcdir)/src/lib/include \
8-I$(top_srcdir)/src/modules/engines/gl_common \
9@FREETYPE_CFLAGS@ \
10@PIXMAN_CFLAGS@ \
11@EINA_CFLAGS@ \
12@GL_EET_CFLAGS@ \
13@evas_engine_gl_sdl_cflags@
14
15if BUILD_ENGINE_GL_SDL
16
17GL_SDL_SOURCES = \
18evas_engine.c
19
20GL_SDL_LIBADD = @evas_engine_gl_sdl_libs@ $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la
21
22
23includes_HEADERS = Evas_Engine_GL_SDL.h
24includesdir = $(includedir)/evas-@VMAJ@
25
26if !EVAS_STATIC_BUILD_GL_SDL
27
28pkgdir = $(libdir)/evas/modules/engines/gl_sdl/$(MODULE_ARCH)
29pkg_LTLIBRARIES = module.la
30
31module_la_SOURCES = $(GL_SDL_SOURCES)
32module_la_LIBADD = @EINA_LIBS@ $(GL_SDL_LIBADD) $(top_builddir)/src/lib/libevas.la @dlopen_libs@
33module_la_LDFLAGS = -module -avoid-version
34module_la_LIBTOOLFLAGS = --tag=disable-static
35
36else
37
38noinst_LTLIBRARIES = libevas_engine_gl_sdl.la
39
40libevas_engine_gl_sdl_la_SOURCES = $(GL_SDL_SOURCES)
41libevas_engine_gl_sdl_la_LIBADD = $(GL_SDL_LIBADD)
42
43endif
44endif
45
46EXTRA_DIST = evas_engine.h
diff --git a/libraries/evas/src/modules/engines/gl_sdl/Makefile.in b/libraries/evas/src/modules/engines/gl_sdl/Makefile.in
new file mode 100644
index 0000000..5d4135d
--- /dev/null
+++ b/libraries/evas/src/modules/engines/gl_sdl/Makefile.in
@@ -0,0 +1,796 @@
1# Makefile.in generated by automake 1.11.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18
19VPATH = @srcdir@
20pkgdatadir = $(datadir)/@PACKAGE@
21pkgincludedir = $(includedir)/@PACKAGE@
22pkglibdir = $(libdir)/@PACKAGE@
23pkglibexecdir = $(libexecdir)/@PACKAGE@
24am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25install_sh_DATA = $(install_sh) -c -m 644
26install_sh_PROGRAM = $(install_sh) -c
27install_sh_SCRIPT = $(install_sh) -c
28INSTALL_HEADER = $(INSTALL_DATA)
29transform = $(program_transform_name)
30NORMAL_INSTALL = :
31PRE_INSTALL = :
32POST_INSTALL = :
33NORMAL_UNINSTALL = :
34PRE_UNINSTALL = :
35POST_UNINSTALL = :
36build_triplet = @build@
37host_triplet = @host@
38subdir = src/modules/engines/gl_sdl
39DIST_COMMON = $(am__includes_HEADERS_DIST) $(srcdir)/Makefile.am \
40 $(srcdir)/Makefile.in
41ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \
43 $(top_srcdir)/m4/efl_coverage.m4 \
44 $(top_srcdir)/m4/efl_doxygen.m4 \
45 $(top_srcdir)/m4/efl_fnmatch.m4 \
46 $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \
47 $(top_srcdir)/m4/evas_check_engine.m4 \
48 $(top_srcdir)/m4/evas_check_loader.m4 \
49 $(top_srcdir)/m4/evas_converter.m4 \
50 $(top_srcdir)/m4/evas_dither.m4 \
51 $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \
52 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
53 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
54 $(top_srcdir)/configure.ac
55am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
56 $(ACLOCAL_M4)
57mkinstalldirs = $(install_sh) -d
58CONFIG_HEADER = $(top_builddir)/config.h
59CONFIG_CLEAN_FILES =
60CONFIG_CLEAN_VPATH_FILES =
61am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
62am__vpath_adj = case $$p in \
63 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
64 *) f=$$p;; \
65 esac;
66am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
67am__install_max = 40
68am__nobase_strip_setup = \
69 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
70am__nobase_strip = \
71 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
72am__nobase_list = $(am__nobase_strip_setup); \
73 for p in $$list; do echo "$$p $$p"; done | \
74 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
75 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
76 if (++n[$$2] == $(am__install_max)) \
77 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
78 END { for (dir in files) print dir, files[dir] }'
79am__base_list = \
80 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
81 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
82am__installdirs = "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"
83LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
84@BUILD_ENGINE_GL_SDL_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la
85@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@libevas_engine_gl_sdl_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
86am__libevas_engine_gl_sdl_la_SOURCES_DIST = evas_engine.c
87@BUILD_ENGINE_GL_SDL_TRUE@am__objects_1 = evas_engine.lo
88@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@am_libevas_engine_gl_sdl_la_OBJECTS = $(am__objects_1)
89libevas_engine_gl_sdl_la_OBJECTS = \
90 $(am_libevas_engine_gl_sdl_la_OBJECTS)
91AM_V_lt = $(am__v_lt_$(V))
92am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
93am__v_lt_0 = --silent
94@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@am_libevas_engine_gl_sdl_la_rpath =
95@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
96@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@ $(top_builddir)/src/lib/libevas.la
97am__module_la_SOURCES_DIST = evas_engine.c
98@BUILD_ENGINE_GL_SDL_TRUE@am__objects_2 = module_la-evas_engine.lo
99@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@am_module_la_OBJECTS = $(am__objects_2)
100module_la_OBJECTS = $(am_module_la_OBJECTS)
101module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
102 $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
103 $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@
104@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@am_module_la_rpath = -rpath \
105@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@ $(pkgdir)
106DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
107depcomp = $(SHELL) $(top_srcdir)/depcomp
108am__depfiles_maybe = depfiles
109am__mv = mv -f
110COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
111 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
112LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
113 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
114 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
115 $(AM_CFLAGS) $(CFLAGS)
116AM_V_CC = $(am__v_CC_$(V))
117am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
118am__v_CC_0 = @echo " CC " $@;
119AM_V_at = $(am__v_at_$(V))
120am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
121am__v_at_0 = @
122CCLD = $(CC)
123LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
124 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
125 $(AM_LDFLAGS) $(LDFLAGS) -o $@
126AM_V_CCLD = $(am__v_CCLD_$(V))
127am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
128am__v_CCLD_0 = @echo " CCLD " $@;
129AM_V_GEN = $(am__v_GEN_$(V))
130am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
131am__v_GEN_0 = @echo " GEN " $@;
132SOURCES = $(libevas_engine_gl_sdl_la_SOURCES) $(module_la_SOURCES)
133DIST_SOURCES = $(am__libevas_engine_gl_sdl_la_SOURCES_DIST) \
134 $(am__module_la_SOURCES_DIST)
135am__includes_HEADERS_DIST = Evas_Engine_GL_SDL.h
136HEADERS = $(includes_HEADERS)
137ETAGS = etags
138CTAGS = ctags
139DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
140ACLOCAL = @ACLOCAL@
141ALLOCA = @ALLOCA@
142AMTAR = @AMTAR@
143AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
144AR = @AR@
145AS = @AS@
146AUTOCONF = @AUTOCONF@
147AUTOHEADER = @AUTOHEADER@
148AUTOMAKE = @AUTOMAKE@
149AWK = @AWK@
150CC = @CC@
151CCDEPMODE = @CCDEPMODE@
152CFLAGS = @CFLAGS@
153CHECK_CFLAGS = @CHECK_CFLAGS@
154CHECK_LIBS = @CHECK_LIBS@
155CPP = @CPP@
156CPPFLAGS = @CPPFLAGS@
157CXX = @CXX@
158CXXCPP = @CXXCPP@
159CXXDEPMODE = @CXXDEPMODE@
160CXXFLAGS = @CXXFLAGS@
161CYGPATH_W = @CYGPATH_W@
162DEFS = @DEFS@
163DEPDIR = @DEPDIR@
164DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
165DIRECTFB_LIBS = @DIRECTFB_LIBS@
166DLLTOOL = @DLLTOOL@
167DSYMUTIL = @DSYMUTIL@
168DUMPBIN = @DUMPBIN@
169ECHO_C = @ECHO_C@
170ECHO_N = @ECHO_N@
171ECHO_T = @ECHO_T@
172ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
173ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
174EDB_CFLAGS = @EDB_CFLAGS@
175EDB_LIBS = @EDB_LIBS@
176EDJE_CFLAGS = @EDJE_CFLAGS@
177EDJE_LIBS = @EDJE_LIBS@
178EET_CFLAGS = @EET_CFLAGS@
179EET_LIBS = @EET_LIBS@
180EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
181EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
182EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
183EGREP = @EGREP@
184EINA_CFLAGS = @EINA_CFLAGS@
185EINA_LIBS = @EINA_LIBS@
186EVAS_CFLAGS = @EVAS_CFLAGS@
187EVAS_LIBS = @EVAS_LIBS@
188EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
189EVIL_CFLAGS = @EVIL_CFLAGS@
190EVIL_LIBS = @EVIL_LIBS@
191EXEEXT = @EXEEXT@
192FGREP = @FGREP@
193FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
194FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
195FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
196FREETYPE_LIBS = @FREETYPE_LIBS@
197FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
198FRIBIDI_LIBS = @FRIBIDI_LIBS@
199GL_EET_CFLAGS = @GL_EET_CFLAGS@
200GL_EET_LIBS = @GL_EET_LIBS@
201GREP = @GREP@
202HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
203HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
204INSTALL = @INSTALL@
205INSTALL_DATA = @INSTALL_DATA@
206INSTALL_PROGRAM = @INSTALL_PROGRAM@
207INSTALL_SCRIPT = @INSTALL_SCRIPT@
208INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
209LD = @LD@
210LDFLAGS = @LDFLAGS@
211LIBOBJS = @LIBOBJS@
212LIBS = @LIBS@
213LIBTOOL = @LIBTOOL@
214LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
215LINEBREAK_LIBS = @LINEBREAK_LIBS@
216LIPO = @LIPO@
217LN_S = @LN_S@
218LTLIBOBJS = @LTLIBOBJS@
219MAKEINFO = @MAKEINFO@
220MKDIR_P = @MKDIR_P@
221MODULE_ARCH = @MODULE_ARCH@
222NM = @NM@
223NMEDIT = @NMEDIT@
224OBJC = @OBJC@
225OBJCDEPMODE = @OBJCDEPMODE@
226OBJCFLAGS = @OBJCFLAGS@
227OBJDUMP = @OBJDUMP@
228OBJEXT = @OBJEXT@
229OTOOL = @OTOOL@
230OTOOL64 = @OTOOL64@
231PACKAGE = @PACKAGE@
232PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
233PACKAGE_NAME = @PACKAGE_NAME@
234PACKAGE_STRING = @PACKAGE_STRING@
235PACKAGE_TARNAME = @PACKAGE_TARNAME@
236PACKAGE_URL = @PACKAGE_URL@
237PACKAGE_VERSION = @PACKAGE_VERSION@
238PATH_SEPARATOR = @PATH_SEPARATOR@
239PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
240PIXMAN_LIBS = @PIXMAN_LIBS@
241PKG_CONFIG = @PKG_CONFIG@
242PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
243PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
244PNG_CFLAGS = @PNG_CFLAGS@
245PNG_LIBS = @PNG_LIBS@
246RANLIB = @RANLIB@
247SDL_CFLAGS = @SDL_CFLAGS@
248SDL_LIBS = @SDL_LIBS@
249SED = @SED@
250SET_MAKE = @SET_MAKE@
251SHELL = @SHELL@
252SHM_OPEN_LINK = @SHM_OPEN_LINK@
253STRIP = @STRIP@
254SVG_CFLAGS = @SVG_CFLAGS@
255SVG_LIBS = @SVG_LIBS@
256VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
257VALGRIND_LIBS = @VALGRIND_LIBS@
258VERSION = @VERSION@
259VMAJ = @VMAJ@
260WIN32_CFLAGS = @WIN32_CFLAGS@
261WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
262XCB_CFLAGS = @XCB_CFLAGS@
263XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
264XCB_GL_LIBS = @XCB_GL_LIBS@
265XCB_LIBS = @XCB_LIBS@
266XEXT_CFLAGS = @XEXT_CFLAGS@
267XEXT_LIBS = @XEXT_LIBS@
268XMKMF = @XMKMF@
269X_CFLAGS = @X_CFLAGS@
270X_EXTRA_LIBS = @X_EXTRA_LIBS@
271X_LIBS = @X_LIBS@
272X_PRE_LIBS = @X_PRE_LIBS@
273abs_builddir = @abs_builddir@
274abs_srcdir = @abs_srcdir@
275abs_top_builddir = @abs_top_builddir@
276abs_top_srcdir = @abs_top_srcdir@
277ac_ct_CC = @ac_ct_CC@
278ac_ct_CXX = @ac_ct_CXX@
279ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
280ac_ct_OBJC = @ac_ct_OBJC@
281altivec_cflags = @altivec_cflags@
282am__include = @am__include@
283am__leading_dot = @am__leading_dot@
284am__quote = @am__quote@
285am__tar = @am__tar@
286am__untar = @am__untar@
287bindir = @bindir@
288build = @build@
289build_alias = @build_alias@
290build_cpu = @build_cpu@
291build_os = @build_os@
292build_vendor = @build_vendor@
293builddir = @builddir@
294datadir = @datadir@
295datarootdir = @datarootdir@
296dlopen_libs = @dlopen_libs@
297docdir = @docdir@
298dvidir = @dvidir@
299edje_cc = @edje_cc@
300efl_doxygen = @efl_doxygen@
301efl_have_doxygen = @efl_have_doxygen@
302evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
303evas_engine_buffer_libs = @evas_engine_buffer_libs@
304evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
305evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
306evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
307evas_engine_directfb_libs = @evas_engine_directfb_libs@
308evas_engine_fb_cflags = @evas_engine_fb_cflags@
309evas_engine_fb_libs = @evas_engine_fb_libs@
310evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
311evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
312evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
313evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
314evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
315evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
316evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
317evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
318evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
319evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
320evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
321evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
322evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
323evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
324evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
325evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
326evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
327evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
328evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
329evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
330evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
331evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
332evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
333evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
334evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
335evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@
336evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@
337evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
338evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
339evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
340evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
341evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
342evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
343evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
344evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
345evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
346evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
347evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
348evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
349evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
350evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
351evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
352evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
353evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
354evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
355evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
356evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
357evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
358evas_image_loader_png_libs = @evas_image_loader_png_libs@
359evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
360evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
361evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
362evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
363evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
364evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
365evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
366evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
367evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
368evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
369evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
370evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
371exec_prefix = @exec_prefix@
372have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
373have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
374have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
375have_evas_engine_software_x11 = @have_evas_engine_software_x11@
376have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
377have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
378have_lcov = @have_lcov@
379host = @host@
380host_alias = @host_alias@
381host_cpu = @host_cpu@
382host_os = @host_os@
383host_vendor = @host_vendor@
384htmldir = @htmldir@
385includedir = @includedir@
386infodir = @infodir@
387install_sh = @install_sh@
388libdir = @libdir@
389libexecdir = @libexecdir@
390localedir = @localedir@
391localstatedir = @localstatedir@
392lt_ECHO = @lt_ECHO@
393lt_enable_auto_import = @lt_enable_auto_import@
394mandir = @mandir@
395mkdir_p = @mkdir_p@
396oldincludedir = @oldincludedir@
397pdfdir = @pdfdir@
398pkgconfig_requires_private = @pkgconfig_requires_private@
399prefix = @prefix@
400program_transform_name = @program_transform_name@
401psdir = @psdir@
402pthread_cflags = @pthread_cflags@
403pthread_libs = @pthread_libs@
404release_info = @release_info@
405requirement_evas = @requirement_evas@
406sbindir = @sbindir@
407sharedstatedir = @sharedstatedir@
408srcdir = @srcdir@
409sysconfdir = @sysconfdir@
410target_alias = @target_alias@
411top_build_prefix = @top_build_prefix@
412top_builddir = @top_builddir@
413top_srcdir = @top_srcdir@
414version_info = @version_info@
415MAINTAINERCLEANFILES = Makefile.in
416AM_CPPFLAGS = \
417-I. \
418-I$(top_srcdir)/src/lib \
419-I$(top_srcdir)/src/lib/include \
420-I$(top_srcdir)/src/modules/engines/gl_common \
421@FREETYPE_CFLAGS@ \
422@PIXMAN_CFLAGS@ \
423@EINA_CFLAGS@ \
424@GL_EET_CFLAGS@ \
425@evas_engine_gl_sdl_cflags@
426
427@BUILD_ENGINE_GL_SDL_TRUE@GL_SDL_SOURCES = \
428@BUILD_ENGINE_GL_SDL_TRUE@evas_engine.c
429
430@BUILD_ENGINE_GL_SDL_TRUE@GL_SDL_LIBADD = @evas_engine_gl_sdl_libs@ $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la
431@BUILD_ENGINE_GL_SDL_TRUE@includes_HEADERS = Evas_Engine_GL_SDL.h
432@BUILD_ENGINE_GL_SDL_TRUE@includesdir = $(includedir)/evas-@VMAJ@
433@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@pkgdir = $(libdir)/evas/modules/engines/gl_sdl/$(MODULE_ARCH)
434@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@pkg_LTLIBRARIES = module.la
435@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_SOURCES = $(GL_SDL_SOURCES)
436@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_LIBADD = @EINA_LIBS@ $(GL_SDL_LIBADD) $(top_builddir)/src/lib/libevas.la @dlopen_libs@
437@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_LDFLAGS = -module -avoid-version
438@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
439@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@noinst_LTLIBRARIES = libevas_engine_gl_sdl.la
440@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@libevas_engine_gl_sdl_la_SOURCES = $(GL_SDL_SOURCES)
441@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@libevas_engine_gl_sdl_la_LIBADD = $(GL_SDL_LIBADD)
442EXTRA_DIST = evas_engine.h
443all: all-am
444
445.SUFFIXES:
446.SUFFIXES: .c .lo .o .obj
447$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
448 @for dep in $?; do \
449 case '$(am__configure_deps)' in \
450 *$$dep*) \
451 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
452 && { if test -f $@; then exit 0; else break; fi; }; \
453 exit 1;; \
454 esac; \
455 done; \
456 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/engines/gl_sdl/Makefile'; \
457 $(am__cd) $(top_srcdir) && \
458 $(AUTOMAKE) --gnu src/modules/engines/gl_sdl/Makefile
459.PRECIOUS: Makefile
460Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
461 @case '$?' in \
462 *config.status*) \
463 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
464 *) \
465 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
466 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
467 esac;
468
469$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
470 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
471
472$(top_srcdir)/configure: $(am__configure_deps)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474$(ACLOCAL_M4): $(am__aclocal_m4_deps)
475 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
476$(am__aclocal_m4_deps):
477
478clean-noinstLTLIBRARIES:
479 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
480 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
481 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
482 test "$$dir" != "$$p" || dir=.; \
483 echo "rm -f \"$${dir}/so_locations\""; \
484 rm -f "$${dir}/so_locations"; \
485 done
486install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
487 @$(NORMAL_INSTALL)
488 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
489 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
490 list2=; for p in $$list; do \
491 if test -f $$p; then \
492 list2="$$list2 $$p"; \
493 else :; fi; \
494 done; \
495 test -z "$$list2" || { \
496 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
497 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
498 }
499
500uninstall-pkgLTLIBRARIES:
501 @$(NORMAL_UNINSTALL)
502 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
503 for p in $$list; do \
504 $(am__strip_dir) \
505 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
506 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
507 done
508
509clean-pkgLTLIBRARIES:
510 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
511 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
512 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
513 test "$$dir" != "$$p" || dir=.; \
514 echo "rm -f \"$${dir}/so_locations\""; \
515 rm -f "$${dir}/so_locations"; \
516 done
517libevas_engine_gl_sdl.la: $(libevas_engine_gl_sdl_la_OBJECTS) $(libevas_engine_gl_sdl_la_DEPENDENCIES)
518 $(AM_V_CCLD)$(LINK) $(am_libevas_engine_gl_sdl_la_rpath) $(libevas_engine_gl_sdl_la_OBJECTS) $(libevas_engine_gl_sdl_la_LIBADD) $(LIBS)
519module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
520 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
521
522mostlyclean-compile:
523 -rm -f *.$(OBJEXT)
524
525distclean-compile:
526 -rm -f *.tab.c
527
528@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_engine.Plo@am__quote@
529@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_engine.Plo@am__quote@
530
531.c.o:
532@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
534@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
535@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
536@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537@am__fastdepCC_FALSE@ $(COMPILE) -c $<
538
539.c.obj:
540@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
541@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
542@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
543@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
544@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
546
547.c.lo:
548@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
549@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
550@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
551@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
552@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
553@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
554
555module_la-evas_engine.lo: evas_engine.c
556@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_engine.lo -MD -MP -MF $(DEPDIR)/module_la-evas_engine.Tpo -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c
557@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_engine.Tpo $(DEPDIR)/module_la-evas_engine.Plo
558@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
559@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_engine.c' object='module_la-evas_engine.lo' libtool=yes @AMDEPBACKSLASH@
560@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
561@am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c
562
563mostlyclean-libtool:
564 -rm -f *.lo
565
566clean-libtool:
567 -rm -rf .libs _libs
568install-includesHEADERS: $(includes_HEADERS)
569 @$(NORMAL_INSTALL)
570 test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)"
571 @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \
572 for p in $$list; do \
573 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
574 echo "$$d$$p"; \
575 done | $(am__base_list) | \
576 while read files; do \
577 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includesdir)'"; \
578 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includesdir)" || exit $$?; \
579 done
580
581uninstall-includesHEADERS:
582 @$(NORMAL_UNINSTALL)
583 @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \
584 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
585 test -n "$$files" || exit 0; \
586 echo " ( cd '$(DESTDIR)$(includesdir)' && rm -f" $$files ")"; \
587 cd "$(DESTDIR)$(includesdir)" && rm -f $$files
588
589ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
590 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
591 unique=`for i in $$list; do \
592 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
593 done | \
594 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
595 END { if (nonempty) { for (i in files) print i; }; }'`; \
596 mkid -fID $$unique
597tags: TAGS
598
599TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
600 $(TAGS_FILES) $(LISP)
601 set x; \
602 here=`pwd`; \
603 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
604 unique=`for i in $$list; do \
605 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
606 done | \
607 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
608 END { if (nonempty) { for (i in files) print i; }; }'`; \
609 shift; \
610 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
611 test -n "$$unique" || unique=$$empty_fix; \
612 if test $$# -gt 0; then \
613 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
614 "$$@" $$unique; \
615 else \
616 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
617 $$unique; \
618 fi; \
619 fi
620ctags: CTAGS
621CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
622 $(TAGS_FILES) $(LISP)
623 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
624 unique=`for i in $$list; do \
625 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
626 done | \
627 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
628 END { if (nonempty) { for (i in files) print i; }; }'`; \
629 test -z "$(CTAGS_ARGS)$$unique" \
630 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
631 $$unique
632
633GTAGS:
634 here=`$(am__cd) $(top_builddir) && pwd` \
635 && $(am__cd) $(top_srcdir) \
636 && gtags -i $(GTAGS_ARGS) "$$here"
637
638distclean-tags:
639 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
640
641distdir: $(DISTFILES)
642 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
643 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
644 list='$(DISTFILES)'; \
645 dist_files=`for file in $$list; do echo $$file; done | \
646 sed -e "s|^$$srcdirstrip/||;t" \
647 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
648 case $$dist_files in \
649 */*) $(MKDIR_P) `echo "$$dist_files" | \
650 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
651 sort -u` ;; \
652 esac; \
653 for file in $$dist_files; do \
654 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
655 if test -d $$d/$$file; then \
656 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
657 if test -d "$(distdir)/$$file"; then \
658 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
659 fi; \
660 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
661 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
662 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
663 fi; \
664 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
665 else \
666 test -f "$(distdir)/$$file" \
667 || cp -p $$d/$$file "$(distdir)/$$file" \
668 || exit 1; \
669 fi; \
670 done
671check-am: all-am
672check: check-am
673all-am: Makefile $(LTLIBRARIES) $(HEADERS)
674installdirs:
675 for dir in "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"; do \
676 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
677 done
678install: install-am
679install-exec: install-exec-am
680install-data: install-data-am
681uninstall: uninstall-am
682
683install-am: all-am
684 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
685
686installcheck: installcheck-am
687install-strip:
688 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
689 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
690 `test -z '$(STRIP)' || \
691 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
692mostlyclean-generic:
693
694clean-generic:
695
696distclean-generic:
697 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
698 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
699
700maintainer-clean-generic:
701 @echo "This command is intended for maintainers to use"
702 @echo "it deletes files that may require special tools to rebuild."
703 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
704clean: clean-am
705
706clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
707 clean-pkgLTLIBRARIES mostlyclean-am
708
709distclean: distclean-am
710 -rm -rf ./$(DEPDIR)
711 -rm -f Makefile
712distclean-am: clean-am distclean-compile distclean-generic \
713 distclean-tags
714
715dvi: dvi-am
716
717dvi-am:
718
719html: html-am
720
721html-am:
722
723info: info-am
724
725info-am:
726
727install-data-am: install-includesHEADERS install-pkgLTLIBRARIES
728
729install-dvi: install-dvi-am
730
731install-dvi-am:
732
733install-exec-am:
734
735install-html: install-html-am
736
737install-html-am:
738
739install-info: install-info-am
740
741install-info-am:
742
743install-man:
744
745install-pdf: install-pdf-am
746
747install-pdf-am:
748
749install-ps: install-ps-am
750
751install-ps-am:
752
753installcheck-am:
754
755maintainer-clean: maintainer-clean-am
756 -rm -rf ./$(DEPDIR)
757 -rm -f Makefile
758maintainer-clean-am: distclean-am maintainer-clean-generic
759
760mostlyclean: mostlyclean-am
761
762mostlyclean-am: mostlyclean-compile mostlyclean-generic \
763 mostlyclean-libtool
764
765pdf: pdf-am
766
767pdf-am:
768
769ps: ps-am
770
771ps-am:
772
773uninstall-am: uninstall-includesHEADERS uninstall-pkgLTLIBRARIES
774
775.MAKE: install-am install-strip
776
777.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
778 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
779 ctags distclean distclean-compile distclean-generic \
780 distclean-libtool distclean-tags distdir dvi dvi-am html \
781 html-am info info-am install install-am install-data \
782 install-data-am install-dvi install-dvi-am install-exec \
783 install-exec-am install-html install-html-am \
784 install-includesHEADERS install-info install-info-am \
785 install-man install-pdf install-pdf-am install-pkgLTLIBRARIES \
786 install-ps install-ps-am install-strip installcheck \
787 installcheck-am installdirs maintainer-clean \
788 maintainer-clean-generic mostlyclean mostlyclean-compile \
789 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
790 tags uninstall uninstall-am uninstall-includesHEADERS \
791 uninstall-pkgLTLIBRARIES
792
793
794# Tell versions [3.59,3.63) of GNU make to not export all variables.
795# Otherwise a system limit (for SysV at least) may be exceeded.
796.NOEXPORT:
diff --git a/libraries/evas/src/modules/engines/gl_sdl/evas_engine.c b/libraries/evas/src/modules/engines/gl_sdl/evas_engine.c
new file mode 100644
index 0000000..46588d9
--- /dev/null
+++ b/libraries/evas/src/modules/engines/gl_sdl/evas_engine.c
@@ -0,0 +1,1081 @@
1#include "evas_common.h" /* Also includes international specific stuff */
2#include "evas_engine.h"
3
4static void* _sdl_output_setup (int w, int h, int fullscreen, int noframe);
5
6int _evas_engine_GL_SDL_log_dom = -1;
7/* function tables - filled in later (func and parent func) */
8static Evas_Func func, pfunc;
9
10static void *
11eng_info(Evas *e)
12{
13 Evas_Engine_Info_GL_SDL *info;
14
15 info = calloc(1, sizeof(Evas_Engine_Info_GL_SDL));
16 if (!info) return NULL;
17 info->magic.magic = rand();
18 return info;
19}
20
21static void
22eng_info_free(Evas *e __UNUSED__, void *info)
23{
24 Evas_Engine_Info_GL_SDL *in;
25 in = (Evas_Engine_Info_GL_SDL *)info;
26 free(in);
27}
28
29static int
30eng_setup(Evas *e, void *in)
31{
32 Render_Engine *re;
33 Evas_Engine_Info_GL_SDL *info;
34
35 info = (Evas_Engine_Info_GL_SDL *)in;
36
37 SDL_Init(SDL_INIT_NOPARACHUTE);
38
39 if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0)
40 {
41 ERR("SDL_Init failed with %s", SDL_GetError());
42 SDL_Quit();
43 return 0;
44 }
45
46 re = _sdl_output_setup(e->output.w, e->output.h,
47 info->flags.fullscreen,
48 info->flags.noframe);
49 re->info = info;
50 e->engine.data.output = re;
51 if (!e->engine.data.output)
52 return 0;
53
54 e->engine.func = &func;
55 e->engine.data.context = e->engine.func->context_new(e->engine.data.output);
56
57 return 1;
58}
59
60static void
61eng_output_free(void *data)
62{
63 Render_Engine *re;
64
65 re = (Render_Engine *)data;
66 evas_gl_common_context_free(re->gl_context);
67 free(re);
68
69 evas_common_font_shutdown();
70 evas_common_image_shutdown();
71
72 SDL_QuitSubSystem(SDL_INIT_VIDEO);
73}
74
75static void
76eng_output_resize(void *data, int w, int h)
77{
78 Render_Engine *re;
79 SDL_Surface *surface;
80
81 re = (Render_Engine *)data;
82 re->w = w;
83 re->h = h;
84
85 if(SDL_GetVideoSurface()->flags & SDL_RESIZABLE)
86 {
87 surface = SDL_SetVideoMode(w, h, 32, EVAS_SDL_GL_FLAG
88 | (re->info->flags.fullscreen ? SDL_FULLSCREEN : 0)
89 | (re->info->flags.noframe ? SDL_NOFRAME : 0));
90 if (!surface)
91 {
92 ERR("Unable to change the resolution to : %ix%i", w, h);
93 SDL_Quit();
94 exit(-1);
95 }
96 }
97
98 evas_gl_common_context_resize(re->gl_context, w, h, re->gl_context->rot);
99}
100
101static void
102eng_output_tile_size_set(void *data, int w __UNUSED__, int h __UNUSED__)
103{
104// Render_Engine *re;
105//
106// re = (Render_Engine *)data;
107}
108
109static void
110eng_output_redraws_rect_add(void *data, int x, int y, int w, int h)
111{
112 Render_Engine *re;
113
114 re = (Render_Engine *)data;
115 evas_gl_common_context_resize(re->gl_context, re->w, re->h, re->gl_context->rot);
116 /* smple bounding box */
117 if (!re->draw.redraw)
118 {
119#if 0
120 re->draw.x1 = x;
121 re->draw.y1 = y;
122 re->draw.x2 = x + w - 1;
123 re->draw.y2 = y + h - 1;
124#else
125 re->draw.x1 = 0;
126 re->draw.y1 = 0;
127 re->draw.x2 = re->w - 1;
128 re->draw.y2 = re->h - 1;
129#endif
130 }
131 else
132 {
133 if (x < re->draw.x1) re->draw.x1 = x;
134 if (y < re->draw.y1) re->draw.y1 = y;
135 if ((x + w - 1) > re->draw.x2) re->draw.x2 = x + w - 1;
136 if ((y + h - 1) > re->draw.y2) re->draw.y2 = y + h - 1;
137 }
138 re->draw.redraw = 1;
139}
140
141static void
142eng_output_redraws_rect_del(void *data, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__)
143{
144// Render_Engine *re;
145//
146// re = (Render_Engine *)data;
147}
148
149static void
150eng_output_redraws_clear(void *data)
151{
152 Render_Engine *re;
153
154 re = (Render_Engine *)data;
155 re->draw.redraw = 0;
156// INF("GL: finish update cycle!");
157}
158
159/* at least the nvidia drivers are so abysmal that copying from the backbuffer
160 * to the front using glCopyPixels() that you literally can WATCH it draw the
161 * pixels slowly across the screen with a window update taking multiple
162 * seconds - so workaround by doing a full buffer render as frankly GL isn't
163 * up to doing anything that isn't done by quake (etc.)
164 */
165#define SLOW_GL_COPY_RECT 1
166/* vsync games - not for now though */
167//#define VSYNC_TO_SCREEN 1
168
169static void *
170eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, int *cx, int *cy, int *cw, int *ch)
171{
172 Render_Engine *re;
173
174 re = (Render_Engine *)data;
175 evas_gl_common_context_flush(re->gl_context);
176 evas_gl_common_context_newframe(re->gl_context);
177 /* get the upate rect surface - return engine data as dummy */
178 if (!re->draw.redraw)
179 {
180// printf("GL: NO updates!\n");
181 return NULL;
182 }
183// printf("GL: update....!\n");
184#ifdef SLOW_GL_COPY_RECT
185 /* if any update - just return the whole canvas - works with swap
186 * buffers then */
187 if (x) *x = 0;
188 if (y) *y = 0;
189 if (w) *w = re->w;
190 if (h) *h = re->h;
191 if (cx) *cx = 0;
192 if (cy) *cy = 0;
193 if (cw) *cw = re->w;
194 if (ch) *ch = re->h;
195#else
196 /* 1 update - INCREDIBLY SLOW if combined with swap_rect in flush. a gl
197 * problem where there just is no hardware path for somethnig that
198 * obviously SHOULD be there */
199 /* only 1 update to minimise gl context games and rendering multiple update
200 * regions as evas does with other engines
201 */
202 if (x) *x = re->draw.x1;
203 if (y) *y = re->draw.y1;
204 if (w) *w = re->draw.x2 - re->draw.x1 + 1;
205 if (h) *h = re->draw.y2 - re->draw.y1 + 1;
206 if (cx) *cx = re->draw.x1;
207 if (cy) *cy = re->draw.y1;
208 if (cw) *cw = re->draw.x2 - re->draw.x1 + 1;
209 if (ch) *ch = re->draw.y2 - re->draw.y1 + 1;
210#endif
211// clear buffer. only needed for dest alpha
212// glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
213// glClear(GL_COLOR_BUFFER_BIT);
214//x// printf("frame -> new\n");
215 return re->gl_context->def_surface;
216}
217
218static void
219eng_output_redraws_next_update_push(void *data, void *surface __UNUSED__, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__)
220{
221 Render_Engine *re;
222
223 re = (Render_Engine *)data;
224 /* put back update surface.. in this case just unflag redraw */
225 re->draw.redraw = 0;
226 re->draw.drew = 1;
227 evas_gl_common_context_flush(re->gl_context);
228//x// printf("frame -> push\n");
229}
230
231static void
232eng_output_flush(void *data)
233{
234 Render_Engine *re;
235
236 re = (Render_Engine *)data;
237 if (!re->draw.drew) return;
238//x// printf("frame -> flush\n");
239 re->draw.drew = 0;
240
241#if 0
242#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
243// glFlush();
244 eglSwapBuffers(re->egl_disp, re->egl_surface[0]);
245#else
246 glXSwapBuffers(re->win->disp, re->win);
247#endif
248#else
249 SDL_GL_SwapBuffers();
250#endif
251}
252
253static void
254eng_output_idle_flush(void *data)
255{
256 Render_Engine *re;
257
258 re = (Render_Engine *)data;
259}
260
261static void
262eng_output_dump(void *data)
263{
264 Render_Engine *re;
265
266 re = (Render_Engine *)data;
267 evas_common_image_image_all_unload();
268 evas_common_font_font_all_unload();
269 evas_gl_common_image_all_unload(re->gl_context);
270}
271
272static void
273eng_context_cutout_add(void *data, void *context, int x, int y, int w, int h)
274{
275// Render_Engine *re;
276//
277// re = (Render_Engine *)data;
278// re->gl_context->dc = context;
279 evas_common_draw_context_add_cutout(context, x, y, w, h);
280}
281
282static void
283eng_context_cutout_clear(void *data, void *context)
284{
285// Render_Engine *re;
286//
287// re = (Render_Engine *)data;
288// re->gl_context->dc = context;
289 evas_common_draw_context_clear_cutouts(context);
290}
291
292static void
293eng_rectangle_draw(void *data, void *context, void *surface, int x, int y, int w, int h)
294{
295 Render_Engine *re;
296
297 re = (Render_Engine *)data;
298 evas_gl_common_context_target_surface_set(re->gl_context, surface);
299 re->gl_context->dc = context;
300 evas_gl_common_rect_draw(re->gl_context, x, y, w, h);
301}
302
303static void
304eng_line_draw(void *data, void *context, void *surface, int x1, int y1, int x2, int y2)
305{
306 Render_Engine *re;
307
308 re = (Render_Engine *)data;
309 evas_gl_common_context_target_surface_set(re->gl_context, surface);
310 re->gl_context->dc = context;
311 evas_gl_common_line_draw(re->gl_context, x1, y1, x2, y2);
312}
313
314static void *
315eng_polygon_point_add(void *data, void *context __UNUSED__, void *polygon, int x, int y)
316{
317 Render_Engine *re;
318
319 re = (Render_Engine *)data;
320 return evas_gl_common_poly_point_add(polygon, x, y);
321}
322
323static void *
324eng_polygon_points_clear(void *data, void *context __UNUSED__, void *polygon)
325{
326 Render_Engine *re;
327
328 re = (Render_Engine *)data;
329 return evas_gl_common_poly_points_clear(polygon);
330}
331
332static void
333eng_polygon_draw(void *data, void *context, void *surface, void *polygon, int x, int y)
334{
335 Render_Engine *re;
336
337 re = (Render_Engine *)data;
338 evas_gl_common_context_target_surface_set(re->gl_context, surface);
339 re->gl_context->dc = context;
340 evas_gl_common_poly_draw(re->gl_context, polygon, x, y);
341}
342
343static int
344eng_image_alpha_get(void *data, void *image)
345{
346// Render_Engine *re;
347 Evas_GL_Image *im;
348
349// re = (Render_Engine *)data;
350 if (!image) return 1;
351 im = image;
352 return im->alpha;
353}
354
355static int
356eng_image_colorspace_get(void *data, void *image)
357{
358// Render_Engine *re;
359 Evas_GL_Image *im;
360
361// re = (Render_Engine *)data;
362 if (!image) return EVAS_COLORSPACE_ARGB8888;
363 im = image;
364 return im->cs.space;
365}
366
367static void *
368eng_image_alpha_set(void *data, void *image, int has_alpha)
369{
370 Render_Engine *re;
371 Evas_GL_Image *im;
372
373 re = (Render_Engine *)data;
374 if (!image) return NULL;
375 im = image;
376 if (im->native.data)
377 {
378 im->alpha = has_alpha;
379 return image;
380 }
381 /* FIXME: can move to gl_common */
382 if (im->cs.space != EVAS_COLORSPACE_ARGB8888) return im;
383 if ((has_alpha) && (im->im->cache_entry.flags.alpha)) return image;
384 else if ((!has_alpha) && (!im->im->cache_entry.flags.alpha)) return image;
385 if (im->references > 1)
386 {
387 Evas_GL_Image *im_new;
388
389 im_new = evas_gl_common_image_new_from_copied_data(im->gc, im->im->cache_entry.w, im->im->cache_entry.h, im->im->image.data,
390 eng_image_alpha_get(data, image),
391 eng_image_colorspace_get(data, image));
392 if (!im_new) return im;
393 evas_gl_common_image_free(im);
394 im = im_new;
395 }
396 else
397 evas_gl_common_image_dirty(im, 0, 0, 0, 0);
398 im->im->cache_entry.flags.alpha = has_alpha ? 1 : 0;
399 return image;
400}
401
402static void *
403eng_image_border_set(void *data, void *image, int l __UNUSED__, int r __UNUSED__, int t __UNUSED__, int b __UNUSED__)
404{
405// Render_Engine *re;
406//
407// re = (Render_Engine *)data;
408 return image;
409}
410
411static void
412eng_image_border_get(void *data, void *image __UNUSED__, int *l __UNUSED__, int *r __UNUSED__, int *t __UNUSED__, int *b __UNUSED__)
413{
414// Render_Engine *re;
415//
416// re = (Render_Engine *)data;
417}
418
419static char *
420eng_image_comment_get(void *data, void *image, char *key __UNUSED__)
421{
422// Render_Engine *re;
423 Evas_GL_Image *im;
424
425// re = (Render_Engine *)data;
426 if (!image) return NULL;
427 im = image;
428 if (!im->im) return NULL;
429 return im->im->info.comment;
430}
431
432static char *
433eng_image_format_get(void *data, void *image)
434{
435// Render_Engine *re;
436 Evas_GL_Image *im;
437
438// re = (Render_Engine *)data;
439 im = image;
440 return NULL;
441}
442
443static void
444eng_image_colorspace_set(void *data, void *image, int cspace)
445{
446 Render_Engine *re;
447 Evas_GL_Image *im;
448
449 re = (Render_Engine *)data;
450 if (!image) return;
451 im = image;
452 if (im->native.data) return;
453 /* FIXME: can move to gl_common */
454 if (im->cs.space == cspace) return;
455 evas_cache_image_colorspace(&im->im->cache_entry, cspace);
456 switch (cspace)
457 {
458 case EVAS_COLORSPACE_ARGB8888:
459 if (im->cs.data)
460 {
461 if (!im->cs.no_free) free(im->cs.data);
462 im->cs.data = NULL;
463 im->cs.no_free = 0;
464 }
465 break;
466 case EVAS_COLORSPACE_YCBCR422P601_PL:
467 case EVAS_COLORSPACE_YCBCR422P709_PL:
468 case EVAS_COLORSPACE_YCBCR422601_PL:
469 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
470 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
471 if (im->tex) evas_gl_common_texture_free(im->tex);
472 im->tex = NULL;
473 if (im->cs.data)
474 {
475 if (!im->cs.no_free) free(im->cs.data);
476 }
477 im->cs.data = calloc(1, im->im->cache_entry.h * sizeof(unsigned char *) * 2);
478 im->cs.no_free = 0;
479 break;
480 default:
481 abort();
482 break;
483 }
484 im->cs.space = cspace;
485}
486
487/////////////////////////////////////////////////////////////////////////
488//
489//
490typedef struct _Native Native;
491
492struct _Native
493{
494 Evas_Native_Surface ns;
495
496#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
497 EGLSurface egl_surface;
498#endif
499};
500
501static void
502_native_bind_cb(void *data, void *image)
503{
504}
505
506static void
507_native_unbind_cb(void *data, void *image)
508{
509}
510
511static void
512_native_free_cb(void *data, void *image)
513{
514}
515
516static void *
517eng_image_native_set(void *data, void *image, void *native)
518{
519 return NULL;
520}
521
522static void *
523eng_image_native_get(void *data, void *image)
524{
525 return NULL;
526}
527
528//
529//
530/////////////////////////////////////////////////////////////////////////
531
532static void *
533eng_image_load(void *data, const char *file, const char *key, int *error, Evas_Image_Load_Opts *lo)
534{
535 Render_Engine *re;
536
537 re = (Render_Engine *)data;
538 *error = EVAS_LOAD_ERROR_NONE;
539 return evas_gl_common_image_load(re->gl_context, file, key, lo, error);
540}
541
542static void *
543eng_image_new_from_data(void *data, int w, int h, DATA32 *image_data, int alpha, int cspace)
544{
545 Render_Engine *re;
546
547 re = (Render_Engine *)data;
548 return evas_gl_common_image_new_from_data(re->gl_context, w, h, image_data, alpha, cspace);
549}
550
551static void *
552eng_image_new_from_copied_data(void *data, int w, int h, DATA32 *image_data, int alpha, int cspace)
553{
554 Render_Engine *re;
555
556 re = (Render_Engine *)data;
557 return evas_gl_common_image_new_from_copied_data(re->gl_context, w, h, image_data, alpha, cspace);
558}
559
560static void
561eng_image_free(void *data, void *image)
562{
563 Render_Engine *re;
564
565 re = (Render_Engine *)data;
566 if (!image) return;
567 evas_gl_common_image_free(image);
568}
569
570static void
571eng_image_size_get(void *data, void *image, int *w, int *h)
572{
573// Render_Engine *re;
574//
575// re = (Render_Engine *)data;
576 if (!image)
577 {
578 *w = 0;
579 *h = 0;
580 return;
581 }
582 if (w) *w = ((Evas_GL_Image *)image)->w;
583 if (h) *h = ((Evas_GL_Image *)image)->h;
584}
585
586static void *
587eng_image_size_set(void *data, void *image, int w, int h)
588{
589 Render_Engine *re;
590 Evas_GL_Image *im = image;
591 Evas_GL_Image *im_old;
592
593 re = (Render_Engine *)data;
594 if (!im) return NULL;
595 if (im->native.data)
596 {
597 im->w = w;
598 im->h = h;
599 return image;
600 }
601 im_old = image;
602
603 switch (eng_image_colorspace_get(data, image))
604 {
605 case EVAS_COLORSPACE_YCBCR422P601_PL:
606 case EVAS_COLORSPACE_YCBCR422P709_PL:
607 case EVAS_COLORSPACE_YCBCR422601_PL:
608 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
609 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
610 w &= ~0x1;
611 break;
612 }
613
614 if ((im_old) && (im_old->im->cache_entry.w == w) && (im_old->im->cache_entry.h == h))
615 return image;
616 if (im_old)
617 {
618 im = evas_gl_common_image_new(re->gl_context, w, h,
619 eng_image_alpha_get(data, image),
620 eng_image_colorspace_get(data, image));
621/*
622 evas_common_load_image_data_from_file(im_old->im);
623 if (im_old->im->image->data)
624 {
625 evas_common_blit_rectangle(im_old->im, im->im, 0, 0, w, h, 0, 0);
626 evas_common_cpu_end_opt();
627 }
628 */
629 evas_gl_common_image_free(im_old);
630 }
631 else
632 im = evas_gl_common_image_new(re->gl_context, w, h, 1, EVAS_COLORSPACE_ARGB8888);
633 return im;
634}
635
636static void *
637eng_image_dirty_region(void *data, void *image, int x, int y, int w, int h)
638{
639 Render_Engine *re;
640 Evas_GL_Image *im = image;
641
642 re = (Render_Engine *)data;
643 if (!image) return NULL;
644 if (im->native.data) return image;
645 evas_gl_common_image_dirty(image, x, y, w, h);
646 return image;
647}
648
649static void *
650eng_image_data_get(void *data, void *image, int to_write, DATA32 **image_data, int *err)
651{
652 Render_Engine *re;
653 Evas_GL_Image *im;
654 int error;
655
656 re = (Render_Engine *)data;
657 if (!image)
658 {
659 *image_data = NULL;
660 if (err) *err = EVAS_LOAD_ERROR_GENERIC;
661 return NULL;
662 }
663 im = image;
664 if (im->native.data)
665 {
666 *image_data = NULL;
667 if (err) *err = EVAS_LOAD_ERROR_NONE;
668 return im;
669 }
670 error = evas_cache_image_load_data(&im->im->cache_entry);
671 switch (im->cs.space)
672 {
673 case EVAS_COLORSPACE_ARGB8888:
674 if (to_write)
675 {
676 if (im->references > 1)
677 {
678 Evas_GL_Image *im_new;
679
680 im_new = evas_gl_common_image_new_from_copied_data(im->gc, im->im->cache_entry.w, im->im->cache_entry.h, im->im->image.data,
681 eng_image_alpha_get(data, image),
682 eng_image_colorspace_get(data, image));
683 if (!im_new)
684 {
685 *image_data = NULL;
686 if (err) *err = error;
687 return im;
688 }
689 evas_gl_common_image_free(im);
690 im = im_new;
691 }
692 else
693 evas_gl_common_image_dirty(im, 0, 0, 0, 0);
694 }
695 *image_data = im->im->image.data;
696 break;
697 case EVAS_COLORSPACE_YCBCR422P601_PL:
698 case EVAS_COLORSPACE_YCBCR422P709_PL:
699 case EVAS_COLORSPACE_YCBCR422601_PL:
700 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
701 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
702 *image_data = im->cs.data;
703 break;
704 default:
705 abort();
706 break;
707 }
708 if (err) *err = error;
709 return im;
710}
711
712static void *
713eng_image_data_put(void *data, void *image, DATA32 *image_data)
714{
715 Render_Engine *re;
716 Evas_GL_Image *im, *im2;
717
718 re = (Render_Engine *)data;
719 if (!image) return NULL;
720 im = image;
721 if (im->native.data) return image;
722 switch (im->cs.space)
723 {
724 case EVAS_COLORSPACE_ARGB8888:
725 if (image_data != im->im->image.data)
726 {
727 int w, h;
728
729 w = im->im->cache_entry.w;
730 h = im->im->cache_entry.h;
731 im2 = eng_image_new_from_data(data, w, h, image_data,
732 eng_image_alpha_get(data, image),
733 eng_image_colorspace_get(data, image));
734 if (!im2) return im;
735 evas_gl_common_image_free(im);
736 im = im2;
737 }
738 break;
739 case EVAS_COLORSPACE_YCBCR422P601_PL:
740 case EVAS_COLORSPACE_YCBCR422P709_PL:
741 case EVAS_COLORSPACE_YCBCR422601_PL:
742 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
743 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
744 if (image_data != im->cs.data)
745 {
746 if (im->cs.data)
747 {
748 if (!im->cs.no_free) free(im->cs.data);
749 }
750 im->cs.data = image_data;
751 }
752 break;
753 default:
754 abort();
755 break;
756 }
757 /* hmmm - but if we wrote... why bother? */
758 evas_gl_common_image_dirty(im, 0, 0, 0, 0);
759 return im;
760}
761
762static void
763eng_image_data_preload_request(void *data __UNUSED__, void *image, const void *target)
764{
765 Evas_GL_Image *gim = image;
766 RGBA_Image *im;
767
768 if (!gim) return;
769 if (gim->native.data) return;
770 im = (RGBA_Image *)gim->im;
771 if (!im) return;
772 evas_cache_image_preload_data(&im->cache_entry, target);
773}
774
775static void
776eng_image_data_preload_cancel(void *data __UNUSED__, void *image, const void *target)
777{
778 Evas_GL_Image *gim = image;
779 RGBA_Image *im;
780
781 if (!gim) return;
782 if (gim->native.data) return;
783 im = (RGBA_Image *)gim->im;
784 if (!im) return;
785 evas_cache_image_preload_cancel(&im->cache_entry, target);
786}
787
788static void
789eng_image_draw(void *data, void *context, void *surface, void *image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int smooth)
790{
791 Render_Engine *re;
792
793 re = (Render_Engine *)data;
794 if (!image) return;
795 evas_gl_common_context_target_surface_set(re->gl_context, surface);
796 re->gl_context->dc = context;
797 evas_gl_common_image_draw(re->gl_context, image,
798 src_x, src_y, src_w, src_h,
799 dst_x, dst_y, dst_w, dst_h,
800 smooth);
801}
802
803static void
804eng_image_scale_hint_set(void *data __UNUSED__, void *image, int hint)
805{
806}
807
808static void
809eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
810{
811 Render_Engine *re;
812
813 re = (Render_Engine *)data;
814 evas_gl_common_context_target_surface_set(re->gl_context, surface);
815 re->gl_context->dc = context;
816 evas_gl_common_image_map_draw(re->gl_context, image, npoints, p, smooth, level);
817}
818
819static void *
820eng_image_map_surface_new(void *data __UNUSED__, int w, int h, int alpha)
821{
822 Render_Engine *re;
823
824 re = (Render_Engine *)data;
825 return evas_gl_common_image_surface_new(re->gl_context, w, h, alpha);
826}
827
828static void
829eng_image_map_surface_free(void *data __UNUSED__, void *surface)
830{
831 evas_gl_common_image_free(surface);
832}
833
834static int
835eng_image_scale_hint_get(void *data __UNUSED__, void *image)
836{
837 return EVAS_IMAGE_SCALE_HINT_NONE;
838}
839
840static void
841eng_font_draw(void *data, void *context, void *surface, Evas_Font_Set *font, int x, int y, int w __UNUSED__, int h __UNUSED__, int ow __UNUSED__, int oh __UNUSED__, const Evas_Text_Props *intl_props)
842{
843 Render_Engine *re;
844
845 re = (Render_Engine *)data;
846 evas_gl_common_context_target_surface_set(re->gl_context, surface);
847 re->gl_context->dc = context;
848 {
849 // FIXME: put im into context so we can free it
850 static RGBA_Image *im = NULL;
851
852 if (!im)
853 im = (RGBA_Image *)evas_cache_image_empty(evas_common_image_cache_get());
854 im->cache_entry.w = re->w;
855 im->cache_entry.h = re->h;
856 evas_common_draw_context_font_ext_set(context,
857 re->gl_context,
858 evas_gl_font_texture_new,
859 evas_gl_font_texture_free,
860 evas_gl_font_texture_draw);
861 evas_common_font_draw(im, context, (RGBA_Font *) font, x, y,
862 intl_props);
863 evas_common_draw_context_font_ext_set(context,
864 NULL,
865 NULL,
866 NULL,
867 NULL);
868 }
869}
870
871static Eina_Bool
872eng_canvas_alpha_get(void *data __UNUSED__, void *info __UNUSED__)
873{
874 // FIXME: support ARGB gl targets!!!
875 return EINA_FALSE;
876}
877
878static int
879eng_image_load_error_get(void *data __UNUSED__, void *image)
880{
881 Evas_GL_Image *im;
882
883 if (!image) return EVAS_LOAD_ERROR_NONE;
884 im = image;
885 return im->im->cache_entry.load_error;
886}
887
888
889static int
890module_open(Evas_Module *em)
891{
892 if (!em) return 0;
893 if (!evas_gl_common_module_open()) return 0;
894 /* get whatever engine module we inherit from */
895 if (!_evas_module_engine_inherit(&pfunc, "software_generic")) return 0;
896 if (_evas_engine_GL_SDL_log_dom < 0)
897 _evas_engine_GL_SDL_log_dom = eina_log_domain_register
898 ("evas-gl_sdl", EVAS_DEFAULT_LOG_COLOR);
899 if (_evas_engine_GL_SDL_log_dom < 0)
900 {
901 EINA_LOG_ERR("Can not create a module log domain.");
902 return 0;
903 }
904 /* store it for later use */
905 func = pfunc;
906 /* now to override methods */
907 #define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_)
908 ORD(info);
909 ORD(info_free);
910 ORD(setup);
911 ORD(canvas_alpha_get);
912 ORD(output_free);
913 ORD(output_resize);
914 ORD(output_tile_size_set);
915 ORD(output_redraws_rect_add);
916 ORD(output_redraws_rect_del);
917 ORD(output_redraws_clear);
918 ORD(output_redraws_next_update_get);
919 ORD(output_redraws_next_update_push);
920 ORD(context_cutout_add);
921 ORD(context_cutout_clear);
922 ORD(output_flush);
923 ORD(output_idle_flush);
924 ORD(output_dump);
925 ORD(rectangle_draw);
926 ORD(line_draw);
927 ORD(polygon_point_add);
928 ORD(polygon_points_clear);
929 ORD(polygon_draw);
930
931 ORD(image_load);
932 ORD(image_new_from_data);
933 ORD(image_new_from_copied_data);
934 ORD(image_free);
935 ORD(image_size_get);
936 ORD(image_size_set);
937 ORD(image_dirty_region);
938 ORD(image_data_get);
939 ORD(image_data_put);
940 ORD(image_data_preload_request);
941 ORD(image_data_preload_cancel);
942 ORD(image_alpha_set);
943 ORD(image_alpha_get);
944 ORD(image_border_set);
945 ORD(image_border_get);
946 ORD(image_draw);
947 ORD(image_comment_get);
948 ORD(image_format_get);
949 ORD(image_colorspace_set);
950 ORD(image_colorspace_get);
951 ORD(image_native_set);
952 ORD(image_native_get);
953#if 0 // filtering disabled
954// ORD(image_draw_filtered);
955// ORD(image_filtered_get);
956// ORD(image_filtered_save);
957// ORD(image_filtered_free);
958#endif
959 ORD(font_draw);
960
961 ORD(image_scale_hint_set);
962 ORD(image_scale_hint_get);
963
964 ORD(image_map_draw);
965 ORD(image_map_surface_new);
966 ORD(image_map_surface_free);
967
968// ORD(image_content_hint_set);
969// ORD(image_content_hint_get);
970
971// ORD(image_cache_flush);
972// ORD(image_cache_set);
973// ORD(image_cache_get);
974
975// ORD(gl_surface_create);
976// ORD(gl_surface_destroy);
977// ORD(gl_context_create);
978// ORD(gl_context_destroy);
979// ORD(gl_make_current);
980// ORD(gl_proc_address_get);
981// ORD(gl_native_surface_get);
982
983// ORD(gl_api_get);
984
985 ORD(image_load_error_get);
986
987 /* now advertise out own api */
988 em->functions = (void *)(&func);
989 return 1;
990}
991
992static void
993module_close(Evas_Module *em)
994{
995 eina_log_domain_unregister(_evas_engine_GL_SDL_log_dom);
996 evas_gl_common_module_close();
997}
998
999static Evas_Module_Api evas_modapi =
1000{
1001 EVAS_MODULE_API_VERSION,
1002 "gl_sdl",
1003 "none",
1004 {
1005 module_open,
1006 module_close
1007 }
1008};
1009
1010EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, gl_sdl);
1011
1012#ifndef EVAS_STATIC_BUILD_GL_SDL
1013EVAS_EINA_MODULE_DEFINE(engine, gl_sdl);
1014#endif
1015
1016static void*
1017_sdl_output_setup (int w, int h, int fullscreen, int noframe)
1018{
1019 Render_Engine *re = calloc(1, sizeof(Render_Engine));
1020 SDL_Surface *surface;
1021 int context_attrs[3];
1022 int config_attrs[20];
1023 int major_version, minor_version;
1024 int num_config;
1025
1026 /* if we haven't initialized - init (automatic abort if already done) */
1027 evas_common_cpu_init();
1028 evas_common_blend_init();
1029 evas_common_image_init();
1030 evas_common_convert_init();
1031 evas_common_scale_init();
1032 evas_common_rectangle_init();
1033 evas_common_polygon_init();
1034 evas_common_line_init();
1035 evas_common_font_init();
1036 evas_common_draw_init();
1037 evas_common_tilebuf_init();
1038
1039 if (w <= 0) w = 640;
1040 if (h <= 0) h = 480;
1041
1042 /* GL Initialization */
1043#ifdef HAVE_SDL_GL_CONTEXT_VERSION
1044 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
1045 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
1046#endif
1047 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
1048 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
1049 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
1050 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
1051 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
1052 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 0);
1053
1054 surface = SDL_SetVideoMode(w, h, 32, EVAS_SDL_GL_FLAG
1055 | (fullscreen ? SDL_FULLSCREEN : 0)
1056 | (noframe ? SDL_NOFRAME : 0));
1057
1058 if (!surface)
1059 {
1060 CRIT("SDL_SetVideoMode [ %i x %i x 32 ] failed. %s", w, h, SDL_GetError());
1061 SDL_Quit();
1062 exit(-1);
1063 }
1064
1065 INF("Screen Depth: %d, Vendor: '%s', Renderer: '%s', Version: '%s'", SDL_GetVideoSurface()->format->BitsPerPixel, glGetString(GL_VENDOR), glGetString(GL_RENDERER), glGetString(GL_VERSION));
1066
1067 re->gl_context = evas_gl_common_context_new();
1068 if (!re->gl_context)
1069 {
1070 free(re);
1071 return NULL;
1072 }
1073 evas_gl_common_context_use(re->gl_context);
1074 evas_gl_common_context_resize(re->gl_context, w, h, re->gl_context->rot);
1075
1076 /* End GL Initialization */
1077 re->w = w;
1078 re->h = h;
1079 return re;
1080}
1081
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 @@
1#ifndef EVAS_ENGINE_H
2#define EVAS_ENGINE_H
3
4#define _EVAS_ENGINE_SDL_H
5
6#include "config.h"
7#include <SDL/SDL.h>
8#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
9# include <EGL/egl.h>
10# include <SDL/SDL_opengles.h>
11# ifdef HAVE_SDL_FLAG_OPENGLES
12# define EVAS_SDL_GL_FLAG SDL_OPENGLES
13# else
14# define EVAS_SDL_GL_FLAG SDL_OPENGL /* This probably won't work? */
15# endif
16#else
17# include <SDL/SDL_opengl.h>
18# define EVAS_SDL_GL_FLAG SDL_OPENGL
19#endif
20#include "evas_common.h"
21#include "evas_private.h"
22#include "evas_gl_common.h"
23#include "Evas.h"
24#include "Evas_Engine_GL_SDL.h"
25
26extern int _evas_engine_GL_SDL_log_dom ;
27#ifdef ERR
28# undef ERR
29#endif
30#define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
31
32#ifdef DBG
33# undef DBG
34#endif
35#define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
36
37#ifdef INF
38# undef INF
39#endif
40#define INF(...) EINA_LOG_DOM_INFO(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
41
42#ifdef WRN
43# undef WRN
44#endif
45#define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
46
47#ifdef CRIT
48# undef CRIT
49#endif
50#define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
51
52typedef struct _Render_Engine Render_Engine;
53struct _Render_Engine
54{
55 Evas_Engine_Info_GL_SDL *info;
56 int w, h;
57
58 Evas_Engine_GL_Context *gl_context;
59 struct {
60 int redraw : 1;
61 int drew : 1;
62 int x1, y1, x2, y2;
63 } draw;
64#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
65 EGLContext egl_context[1];
66 EGLSurface egl_surface[1];
67 EGLConfig egl_config;
68 EGLDisplay egl_disp;
69#endif
70
71};
72
73#endif