diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/evas/src/modules/engines/gl_sdl | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_sdl')
5 files changed, 0 insertions, 2024 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 deleted file mode 100644 index 3804aa0..0000000 --- a/libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | #ifndef _EVAS_ENGINE_GL_SDL_H | ||
2 | #define _EVAS_ENGINE_GL_SDL_H | ||
3 | |||
4 | #include <SDL/SDL.h> | ||
5 | |||
6 | typedef struct _Evas_Engine_Info_GL_SDL Evas_Engine_Info_GL_SDL; | ||
7 | |||
8 | struct _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 deleted file mode 100644 index abdeaf0..0000000 --- a/libraries/evas/src/modules/engines/gl_sdl/Makefile.am +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | AM_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 | |||
15 | if BUILD_ENGINE_GL_SDL | ||
16 | |||
17 | GL_SDL_SOURCES = \ | ||
18 | evas_engine.c | ||
19 | |||
20 | GL_SDL_LIBADD = @evas_engine_gl_sdl_libs@ $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la | ||
21 | |||
22 | |||
23 | includes_HEADERS = Evas_Engine_GL_SDL.h | ||
24 | includesdir = $(includedir)/evas-@VMAJ@ | ||
25 | |||
26 | if !EVAS_STATIC_BUILD_GL_SDL | ||
27 | |||
28 | pkgdir = $(libdir)/evas/modules/engines/gl_sdl/$(MODULE_ARCH) | ||
29 | pkg_LTLIBRARIES = module.la | ||
30 | |||
31 | module_la_SOURCES = $(GL_SDL_SOURCES) | ||
32 | module_la_LIBADD = @EINA_LIBS@ $(GL_SDL_LIBADD) $(top_builddir)/src/lib/libevas.la @dlopen_libs@ | ||
33 | module_la_LDFLAGS = -module -avoid-version | ||
34 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
35 | |||
36 | else | ||
37 | |||
38 | noinst_LTLIBRARIES = libevas_engine_gl_sdl.la | ||
39 | |||
40 | libevas_engine_gl_sdl_la_SOURCES = $(GL_SDL_SOURCES) | ||
41 | libevas_engine_gl_sdl_la_LIBADD = $(GL_SDL_LIBADD) | ||
42 | |||
43 | endif | ||
44 | endif | ||
45 | |||
46 | EXTRA_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 deleted file mode 100644 index 4bc9d59..0000000 --- a/libraries/evas/src/modules/engines/gl_sdl/Makefile.in +++ /dev/null | |||
@@ -1,800 +0,0 @@ | |||
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 | |||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
22 | pkglibdir = $(libdir)/@PACKAGE@ | ||
23 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
24 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
25 | install_sh_DATA = $(install_sh) -c -m 644 | ||
26 | install_sh_PROGRAM = $(install_sh) -c | ||
27 | install_sh_SCRIPT = $(install_sh) -c | ||
28 | INSTALL_HEADER = $(INSTALL_DATA) | ||
29 | transform = $(program_transform_name) | ||
30 | NORMAL_INSTALL = : | ||
31 | PRE_INSTALL = : | ||
32 | POST_INSTALL = : | ||
33 | NORMAL_UNINSTALL = : | ||
34 | PRE_UNINSTALL = : | ||
35 | POST_UNINSTALL = : | ||
36 | build_triplet = @build@ | ||
37 | host_triplet = @host@ | ||
38 | subdir = src/modules/engines/gl_sdl | ||
39 | DIST_COMMON = $(am__includes_HEADERS_DIST) $(srcdir)/Makefile.am \ | ||
40 | $(srcdir)/Makefile.in | ||
41 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
42 | am__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 | ||
55 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
56 | $(ACLOCAL_M4) | ||
57 | mkinstalldirs = $(install_sh) -d | ||
58 | CONFIG_HEADER = $(top_builddir)/config.h | ||
59 | CONFIG_CLEAN_FILES = | ||
60 | CONFIG_CLEAN_VPATH_FILES = | ||
61 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
62 | am__vpath_adj = case $$p in \ | ||
63 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
64 | *) f=$$p;; \ | ||
65 | esac; | ||
66 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
67 | am__install_max = 40 | ||
68 | am__nobase_strip_setup = \ | ||
69 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
70 | am__nobase_strip = \ | ||
71 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
72 | am__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] }' | ||
79 | am__base_list = \ | ||
80 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
81 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
82 | am__installdirs = "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)" | ||
83 | LTLIBRARIES = $(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) | ||
86 | am__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) | ||
89 | libevas_engine_gl_sdl_la_OBJECTS = \ | ||
90 | $(am_libevas_engine_gl_sdl_la_OBJECTS) | ||
91 | AM_V_lt = $(am__v_lt_$(V)) | ||
92 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
93 | am__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 | ||
97 | am__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) | ||
100 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
101 | module_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) | ||
106 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
107 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
108 | am__depfiles_maybe = depfiles | ||
109 | am__mv = mv -f | ||
110 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
111 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
112 | LTCOMPILE = $(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) | ||
116 | AM_V_CC = $(am__v_CC_$(V)) | ||
117 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
118 | am__v_CC_0 = @echo " CC " $@; | ||
119 | AM_V_at = $(am__v_at_$(V)) | ||
120 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
121 | am__v_at_0 = @ | ||
122 | CCLD = $(CC) | ||
123 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
124 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
125 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
126 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
127 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
128 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
129 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
130 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
131 | am__v_GEN_0 = @echo " GEN " $@; | ||
132 | SOURCES = $(libevas_engine_gl_sdl_la_SOURCES) $(module_la_SOURCES) | ||
133 | DIST_SOURCES = $(am__libevas_engine_gl_sdl_la_SOURCES_DIST) \ | ||
134 | $(am__module_la_SOURCES_DIST) | ||
135 | am__includes_HEADERS_DIST = Evas_Engine_GL_SDL.h | ||
136 | HEADERS = $(includes_HEADERS) | ||
137 | ETAGS = etags | ||
138 | CTAGS = ctags | ||
139 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
140 | ACLOCAL = @ACLOCAL@ | ||
141 | ALLOCA = @ALLOCA@ | ||
142 | AMTAR = @AMTAR@ | ||
143 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
144 | AR = @AR@ | ||
145 | AS = @AS@ | ||
146 | AUTOCONF = @AUTOCONF@ | ||
147 | AUTOHEADER = @AUTOHEADER@ | ||
148 | AUTOMAKE = @AUTOMAKE@ | ||
149 | AWK = @AWK@ | ||
150 | CC = @CC@ | ||
151 | CCDEPMODE = @CCDEPMODE@ | ||
152 | CFLAGS = @CFLAGS@ | ||
153 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
154 | CHECK_LIBS = @CHECK_LIBS@ | ||
155 | CPP = @CPP@ | ||
156 | CPPFLAGS = @CPPFLAGS@ | ||
157 | CXX = @CXX@ | ||
158 | CXXCPP = @CXXCPP@ | ||
159 | CXXDEPMODE = @CXXDEPMODE@ | ||
160 | CXXFLAGS = @CXXFLAGS@ | ||
161 | CYGPATH_W = @CYGPATH_W@ | ||
162 | DEFS = @DEFS@ | ||
163 | DEPDIR = @DEPDIR@ | ||
164 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
165 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
166 | DLLTOOL = @DLLTOOL@ | ||
167 | DSYMUTIL = @DSYMUTIL@ | ||
168 | DUMPBIN = @DUMPBIN@ | ||
169 | ECHO_C = @ECHO_C@ | ||
170 | ECHO_N = @ECHO_N@ | ||
171 | ECHO_T = @ECHO_T@ | ||
172 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
173 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
174 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
175 | EDB_LIBS = @EDB_LIBS@ | ||
176 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
177 | EDJE_LIBS = @EDJE_LIBS@ | ||
178 | EET_CFLAGS = @EET_CFLAGS@ | ||
179 | EET_LIBS = @EET_LIBS@ | ||
180 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
181 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
182 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
183 | EGREP = @EGREP@ | ||
184 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
185 | EINA_LIBS = @EINA_LIBS@ | ||
186 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
187 | EVAS_LIBS = @EVAS_LIBS@ | ||
188 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
189 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
190 | EVIL_LIBS = @EVIL_LIBS@ | ||
191 | EXEEXT = @EXEEXT@ | ||
192 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
193 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
194 | FGREP = @FGREP@ | ||
195 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
196 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
197 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
198 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
199 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
200 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
201 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
202 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
203 | GREP = @GREP@ | ||
204 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
205 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
206 | INSTALL = @INSTALL@ | ||
207 | INSTALL_DATA = @INSTALL_DATA@ | ||
208 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
209 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
210 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
211 | LD = @LD@ | ||
212 | LDFLAGS = @LDFLAGS@ | ||
213 | LIBOBJS = @LIBOBJS@ | ||
214 | LIBS = @LIBS@ | ||
215 | LIBTOOL = @LIBTOOL@ | ||
216 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
217 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
218 | LIPO = @LIPO@ | ||
219 | LN_S = @LN_S@ | ||
220 | LTLIBOBJS = @LTLIBOBJS@ | ||
221 | MAKEINFO = @MAKEINFO@ | ||
222 | MKDIR_P = @MKDIR_P@ | ||
223 | MODULE_ARCH = @MODULE_ARCH@ | ||
224 | NM = @NM@ | ||
225 | NMEDIT = @NMEDIT@ | ||
226 | OBJC = @OBJC@ | ||
227 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
228 | OBJCFLAGS = @OBJCFLAGS@ | ||
229 | OBJDUMP = @OBJDUMP@ | ||
230 | OBJEXT = @OBJEXT@ | ||
231 | OTOOL = @OTOOL@ | ||
232 | OTOOL64 = @OTOOL64@ | ||
233 | PACKAGE = @PACKAGE@ | ||
234 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
235 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
236 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
237 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
238 | PACKAGE_URL = @PACKAGE_URL@ | ||
239 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
240 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
241 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
242 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
243 | PKG_CONFIG = @PKG_CONFIG@ | ||
244 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
245 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
246 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
247 | PNG_LIBS = @PNG_LIBS@ | ||
248 | RANLIB = @RANLIB@ | ||
249 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
250 | SDL_LIBS = @SDL_LIBS@ | ||
251 | SED = @SED@ | ||
252 | SET_MAKE = @SET_MAKE@ | ||
253 | SHELL = @SHELL@ | ||
254 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
255 | STRIP = @STRIP@ | ||
256 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
257 | SVG_LIBS = @SVG_LIBS@ | ||
258 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
259 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
260 | VERSION = @VERSION@ | ||
261 | VMAJ = @VMAJ@ | ||
262 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
263 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
264 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
265 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
266 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
267 | XCB_LIBS = @XCB_LIBS@ | ||
268 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
269 | XEXT_LIBS = @XEXT_LIBS@ | ||
270 | XMKMF = @XMKMF@ | ||
271 | X_CFLAGS = @X_CFLAGS@ | ||
272 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
273 | X_LIBS = @X_LIBS@ | ||
274 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
275 | abs_builddir = @abs_builddir@ | ||
276 | abs_srcdir = @abs_srcdir@ | ||
277 | abs_top_builddir = @abs_top_builddir@ | ||
278 | abs_top_srcdir = @abs_top_srcdir@ | ||
279 | ac_ct_CC = @ac_ct_CC@ | ||
280 | ac_ct_CXX = @ac_ct_CXX@ | ||
281 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
282 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
283 | altivec_cflags = @altivec_cflags@ | ||
284 | am__include = @am__include@ | ||
285 | am__leading_dot = @am__leading_dot@ | ||
286 | am__quote = @am__quote@ | ||
287 | am__tar = @am__tar@ | ||
288 | am__untar = @am__untar@ | ||
289 | bindir = @bindir@ | ||
290 | build = @build@ | ||
291 | build_alias = @build_alias@ | ||
292 | build_cpu = @build_cpu@ | ||
293 | build_os = @build_os@ | ||
294 | build_vendor = @build_vendor@ | ||
295 | builddir = @builddir@ | ||
296 | datadir = @datadir@ | ||
297 | datarootdir = @datarootdir@ | ||
298 | dlopen_libs = @dlopen_libs@ | ||
299 | docdir = @docdir@ | ||
300 | dvidir = @dvidir@ | ||
301 | edje_cc = @edje_cc@ | ||
302 | efl_doxygen = @efl_doxygen@ | ||
303 | efl_have_doxygen = @efl_have_doxygen@ | ||
304 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
305 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
306 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
307 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
308 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
309 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
310 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
311 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
312 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
313 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
314 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
315 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
316 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
317 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
318 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
319 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
320 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
321 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
322 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
323 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
324 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
325 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
326 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
327 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
328 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
329 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
330 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
331 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
332 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
333 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
334 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
335 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
336 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
337 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
338 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
339 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
340 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
341 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
342 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
343 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
344 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
345 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
346 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
347 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
348 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
349 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
350 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
351 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
352 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
353 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
354 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
355 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
356 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
357 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
358 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
359 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
360 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
361 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
362 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
363 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
364 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
365 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
366 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
367 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
368 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
369 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
370 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
371 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
372 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
373 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
374 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
375 | exec_prefix = @exec_prefix@ | ||
376 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
377 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
378 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
379 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
380 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
381 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
382 | have_lcov = @have_lcov@ | ||
383 | host = @host@ | ||
384 | host_alias = @host_alias@ | ||
385 | host_cpu = @host_cpu@ | ||
386 | host_os = @host_os@ | ||
387 | host_vendor = @host_vendor@ | ||
388 | htmldir = @htmldir@ | ||
389 | includedir = @includedir@ | ||
390 | infodir = @infodir@ | ||
391 | install_sh = @install_sh@ | ||
392 | libdir = @libdir@ | ||
393 | libexecdir = @libexecdir@ | ||
394 | localedir = @localedir@ | ||
395 | localstatedir = @localstatedir@ | ||
396 | lt_ECHO = @lt_ECHO@ | ||
397 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
398 | mandir = @mandir@ | ||
399 | mkdir_p = @mkdir_p@ | ||
400 | oldincludedir = @oldincludedir@ | ||
401 | pdfdir = @pdfdir@ | ||
402 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
403 | prefix = @prefix@ | ||
404 | program_transform_name = @program_transform_name@ | ||
405 | psdir = @psdir@ | ||
406 | pthread_cflags = @pthread_cflags@ | ||
407 | pthread_libs = @pthread_libs@ | ||
408 | release_info = @release_info@ | ||
409 | requirement_evas = @requirement_evas@ | ||
410 | sbindir = @sbindir@ | ||
411 | sharedstatedir = @sharedstatedir@ | ||
412 | srcdir = @srcdir@ | ||
413 | sysconfdir = @sysconfdir@ | ||
414 | target_alias = @target_alias@ | ||
415 | top_build_prefix = @top_build_prefix@ | ||
416 | top_builddir = @top_builddir@ | ||
417 | top_srcdir = @top_srcdir@ | ||
418 | version_info = @version_info@ | ||
419 | MAINTAINERCLEANFILES = Makefile.in | ||
420 | AM_CPPFLAGS = \ | ||
421 | -I. \ | ||
422 | -I$(top_srcdir)/src/lib \ | ||
423 | -I$(top_srcdir)/src/lib/include \ | ||
424 | -I$(top_srcdir)/src/modules/engines/gl_common \ | ||
425 | @FREETYPE_CFLAGS@ \ | ||
426 | @PIXMAN_CFLAGS@ \ | ||
427 | @EINA_CFLAGS@ \ | ||
428 | @GL_EET_CFLAGS@ \ | ||
429 | @evas_engine_gl_sdl_cflags@ | ||
430 | |||
431 | @BUILD_ENGINE_GL_SDL_TRUE@GL_SDL_SOURCES = \ | ||
432 | @BUILD_ENGINE_GL_SDL_TRUE@evas_engine.c | ||
433 | |||
434 | @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 | ||
435 | @BUILD_ENGINE_GL_SDL_TRUE@includes_HEADERS = Evas_Engine_GL_SDL.h | ||
436 | @BUILD_ENGINE_GL_SDL_TRUE@includesdir = $(includedir)/evas-@VMAJ@ | ||
437 | @BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@pkgdir = $(libdir)/evas/modules/engines/gl_sdl/$(MODULE_ARCH) | ||
438 | @BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@pkg_LTLIBRARIES = module.la | ||
439 | @BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_SOURCES = $(GL_SDL_SOURCES) | ||
440 | @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@ | ||
441 | @BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_LDFLAGS = -module -avoid-version | ||
442 | @BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
443 | @BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@noinst_LTLIBRARIES = libevas_engine_gl_sdl.la | ||
444 | @BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@libevas_engine_gl_sdl_la_SOURCES = $(GL_SDL_SOURCES) | ||
445 | @BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@libevas_engine_gl_sdl_la_LIBADD = $(GL_SDL_LIBADD) | ||
446 | EXTRA_DIST = evas_engine.h | ||
447 | all: all-am | ||
448 | |||
449 | .SUFFIXES: | ||
450 | .SUFFIXES: .c .lo .o .obj | ||
451 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
452 | @for dep in $?; do \ | ||
453 | case '$(am__configure_deps)' in \ | ||
454 | *$$dep*) \ | ||
455 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
456 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
457 | exit 1;; \ | ||
458 | esac; \ | ||
459 | done; \ | ||
460 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/engines/gl_sdl/Makefile'; \ | ||
461 | $(am__cd) $(top_srcdir) && \ | ||
462 | $(AUTOMAKE) --gnu src/modules/engines/gl_sdl/Makefile | ||
463 | .PRECIOUS: Makefile | ||
464 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
465 | @case '$?' in \ | ||
466 | *config.status*) \ | ||
467 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
468 | *) \ | ||
469 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
470 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
471 | esac; | ||
472 | |||
473 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
474 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
475 | |||
476 | $(top_srcdir)/configure: $(am__configure_deps) | ||
477 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
478 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
479 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
480 | $(am__aclocal_m4_deps): | ||
481 | |||
482 | clean-noinstLTLIBRARIES: | ||
483 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
484 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
485 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
486 | test "$$dir" != "$$p" || dir=.; \ | ||
487 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
488 | rm -f "$${dir}/so_locations"; \ | ||
489 | done | ||
490 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
491 | @$(NORMAL_INSTALL) | ||
492 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
493 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
494 | list2=; for p in $$list; do \ | ||
495 | if test -f $$p; then \ | ||
496 | list2="$$list2 $$p"; \ | ||
497 | else :; fi; \ | ||
498 | done; \ | ||
499 | test -z "$$list2" || { \ | ||
500 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
501 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
502 | } | ||
503 | |||
504 | uninstall-pkgLTLIBRARIES: | ||
505 | @$(NORMAL_UNINSTALL) | ||
506 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
507 | for p in $$list; do \ | ||
508 | $(am__strip_dir) \ | ||
509 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
510 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
511 | done | ||
512 | |||
513 | clean-pkgLTLIBRARIES: | ||
514 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
515 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
516 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
517 | test "$$dir" != "$$p" || dir=.; \ | ||
518 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
519 | rm -f "$${dir}/so_locations"; \ | ||
520 | done | ||
521 | libevas_engine_gl_sdl.la: $(libevas_engine_gl_sdl_la_OBJECTS) $(libevas_engine_gl_sdl_la_DEPENDENCIES) | ||
522 | $(AM_V_CCLD)$(LINK) $(am_libevas_engine_gl_sdl_la_rpath) $(libevas_engine_gl_sdl_la_OBJECTS) $(libevas_engine_gl_sdl_la_LIBADD) $(LIBS) | ||
523 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
524 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
525 | |||
526 | mostlyclean-compile: | ||
527 | -rm -f *.$(OBJEXT) | ||
528 | |||
529 | distclean-compile: | ||
530 | -rm -f *.tab.c | ||
531 | |||
532 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_engine.Plo@am__quote@ | ||
533 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_engine.Plo@am__quote@ | ||
534 | |||
535 | .c.o: | ||
536 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
537 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
538 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
540 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
541 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
542 | |||
543 | .c.obj: | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
545 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
546 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
547 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
548 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
549 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
550 | |||
551 | .c.lo: | ||
552 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
553 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
554 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
555 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
556 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
557 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
558 | |||
559 | module_la-evas_engine.lo: evas_engine.c | ||
560 | @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 | ||
561 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_engine.Tpo $(DEPDIR)/module_la-evas_engine.Plo | ||
562 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
563 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_engine.c' object='module_la-evas_engine.lo' libtool=yes @AMDEPBACKSLASH@ | ||
564 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
565 | @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 | ||
566 | |||
567 | mostlyclean-libtool: | ||
568 | -rm -f *.lo | ||
569 | |||
570 | clean-libtool: | ||
571 | -rm -rf .libs _libs | ||
572 | install-includesHEADERS: $(includes_HEADERS) | ||
573 | @$(NORMAL_INSTALL) | ||
574 | test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)" | ||
575 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
576 | for p in $$list; do \ | ||
577 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
578 | echo "$$d$$p"; \ | ||
579 | done | $(am__base_list) | \ | ||
580 | while read files; do \ | ||
581 | echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includesdir)'"; \ | ||
582 | $(INSTALL_HEADER) $$files "$(DESTDIR)$(includesdir)" || exit $$?; \ | ||
583 | done | ||
584 | |||
585 | uninstall-includesHEADERS: | ||
586 | @$(NORMAL_UNINSTALL) | ||
587 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
588 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ | ||
589 | test -n "$$files" || exit 0; \ | ||
590 | echo " ( cd '$(DESTDIR)$(includesdir)' && rm -f" $$files ")"; \ | ||
591 | cd "$(DESTDIR)$(includesdir)" && rm -f $$files | ||
592 | |||
593 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
594 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
595 | unique=`for i in $$list; do \ | ||
596 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
597 | done | \ | ||
598 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
599 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
600 | mkid -fID $$unique | ||
601 | tags: TAGS | ||
602 | |||
603 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
604 | $(TAGS_FILES) $(LISP) | ||
605 | set x; \ | ||
606 | here=`pwd`; \ | ||
607 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
608 | unique=`for i in $$list; do \ | ||
609 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
610 | done | \ | ||
611 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
612 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
613 | shift; \ | ||
614 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
615 | test -n "$$unique" || unique=$$empty_fix; \ | ||
616 | if test $$# -gt 0; then \ | ||
617 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
618 | "$$@" $$unique; \ | ||
619 | else \ | ||
620 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
621 | $$unique; \ | ||
622 | fi; \ | ||
623 | fi | ||
624 | ctags: CTAGS | ||
625 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
626 | $(TAGS_FILES) $(LISP) | ||
627 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
628 | unique=`for i in $$list; do \ | ||
629 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
630 | done | \ | ||
631 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
632 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
633 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
634 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
635 | $$unique | ||
636 | |||
637 | GTAGS: | ||
638 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
639 | && $(am__cd) $(top_srcdir) \ | ||
640 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
641 | |||
642 | distclean-tags: | ||
643 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
644 | |||
645 | distdir: $(DISTFILES) | ||
646 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
647 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
648 | list='$(DISTFILES)'; \ | ||
649 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
650 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
651 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
652 | case $$dist_files in \ | ||
653 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
654 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
655 | sort -u` ;; \ | ||
656 | esac; \ | ||
657 | for file in $$dist_files; do \ | ||
658 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
659 | if test -d $$d/$$file; then \ | ||
660 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
661 | if test -d "$(distdir)/$$file"; then \ | ||
662 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
663 | fi; \ | ||
664 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
665 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
666 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
667 | fi; \ | ||
668 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
669 | else \ | ||
670 | test -f "$(distdir)/$$file" \ | ||
671 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
672 | || exit 1; \ | ||
673 | fi; \ | ||
674 | done | ||
675 | check-am: all-am | ||
676 | check: check-am | ||
677 | all-am: Makefile $(LTLIBRARIES) $(HEADERS) | ||
678 | installdirs: | ||
679 | for dir in "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"; do \ | ||
680 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
681 | done | ||
682 | install: install-am | ||
683 | install-exec: install-exec-am | ||
684 | install-data: install-data-am | ||
685 | uninstall: uninstall-am | ||
686 | |||
687 | install-am: all-am | ||
688 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
689 | |||
690 | installcheck: installcheck-am | ||
691 | install-strip: | ||
692 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
693 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
694 | `test -z '$(STRIP)' || \ | ||
695 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
696 | mostlyclean-generic: | ||
697 | |||
698 | clean-generic: | ||
699 | |||
700 | distclean-generic: | ||
701 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
702 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
703 | |||
704 | maintainer-clean-generic: | ||
705 | @echo "This command is intended for maintainers to use" | ||
706 | @echo "it deletes files that may require special tools to rebuild." | ||
707 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
708 | clean: clean-am | ||
709 | |||
710 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
711 | clean-pkgLTLIBRARIES mostlyclean-am | ||
712 | |||
713 | distclean: distclean-am | ||
714 | -rm -rf ./$(DEPDIR) | ||
715 | -rm -f Makefile | ||
716 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
717 | distclean-tags | ||
718 | |||
719 | dvi: dvi-am | ||
720 | |||
721 | dvi-am: | ||
722 | |||
723 | html: html-am | ||
724 | |||
725 | html-am: | ||
726 | |||
727 | info: info-am | ||
728 | |||
729 | info-am: | ||
730 | |||
731 | install-data-am: install-includesHEADERS install-pkgLTLIBRARIES | ||
732 | |||
733 | install-dvi: install-dvi-am | ||
734 | |||
735 | install-dvi-am: | ||
736 | |||
737 | install-exec-am: | ||
738 | |||
739 | install-html: install-html-am | ||
740 | |||
741 | install-html-am: | ||
742 | |||
743 | install-info: install-info-am | ||
744 | |||
745 | install-info-am: | ||
746 | |||
747 | install-man: | ||
748 | |||
749 | install-pdf: install-pdf-am | ||
750 | |||
751 | install-pdf-am: | ||
752 | |||
753 | install-ps: install-ps-am | ||
754 | |||
755 | install-ps-am: | ||
756 | |||
757 | installcheck-am: | ||
758 | |||
759 | maintainer-clean: maintainer-clean-am | ||
760 | -rm -rf ./$(DEPDIR) | ||
761 | -rm -f Makefile | ||
762 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
763 | |||
764 | mostlyclean: mostlyclean-am | ||
765 | |||
766 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
767 | mostlyclean-libtool | ||
768 | |||
769 | pdf: pdf-am | ||
770 | |||
771 | pdf-am: | ||
772 | |||
773 | ps: ps-am | ||
774 | |||
775 | ps-am: | ||
776 | |||
777 | uninstall-am: uninstall-includesHEADERS uninstall-pkgLTLIBRARIES | ||
778 | |||
779 | .MAKE: install-am install-strip | ||
780 | |||
781 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
782 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
783 | ctags distclean distclean-compile distclean-generic \ | ||
784 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
785 | html-am info info-am install install-am install-data \ | ||
786 | install-data-am install-dvi install-dvi-am install-exec \ | ||
787 | install-exec-am install-html install-html-am \ | ||
788 | install-includesHEADERS install-info install-info-am \ | ||
789 | install-man install-pdf install-pdf-am install-pkgLTLIBRARIES \ | ||
790 | install-ps install-ps-am install-strip installcheck \ | ||
791 | installcheck-am installdirs maintainer-clean \ | ||
792 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
793 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
794 | tags uninstall uninstall-am uninstall-includesHEADERS \ | ||
795 | uninstall-pkgLTLIBRARIES | ||
796 | |||
797 | |||
798 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
799 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
800 | .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 deleted file mode 100644 index 46588d9..0000000 --- a/libraries/evas/src/modules/engines/gl_sdl/evas_engine.c +++ /dev/null | |||
@@ -1,1081 +0,0 @@ | |||
1 | #include "evas_common.h" /* Also includes international specific stuff */ | ||
2 | #include "evas_engine.h" | ||
3 | |||
4 | static void* _sdl_output_setup (int w, int h, int fullscreen, int noframe); | ||
5 | |||
6 | int _evas_engine_GL_SDL_log_dom = -1; | ||
7 | /* function tables - filled in later (func and parent func) */ | ||
8 | static Evas_Func func, pfunc; | ||
9 | |||
10 | static void * | ||
11 | eng_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 | |||
21 | static void | ||
22 | eng_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 | |||
29 | static int | ||
30 | eng_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 | |||
60 | static void | ||
61 | eng_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 | |||
75 | static void | ||
76 | eng_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 | |||
101 | static void | ||
102 | eng_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 | |||
109 | static void | ||
110 | eng_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 | |||
141 | static void | ||
142 | eng_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 | |||
149 | static void | ||
150 | eng_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 | |||
169 | static void * | ||
170 | eng_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 | |||
218 | static void | ||
219 | eng_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 | |||
231 | static void | ||
232 | eng_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 | |||
253 | static void | ||
254 | eng_output_idle_flush(void *data) | ||
255 | { | ||
256 | Render_Engine *re; | ||
257 | |||
258 | re = (Render_Engine *)data; | ||
259 | } | ||
260 | |||
261 | static void | ||
262 | eng_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 | |||
272 | static void | ||
273 | eng_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 | |||
282 | static void | ||
283 | eng_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 | |||
292 | static void | ||
293 | eng_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 | |||
303 | static void | ||
304 | eng_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 | |||
314 | static void * | ||
315 | eng_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 | |||
323 | static void * | ||
324 | eng_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 | |||
332 | static void | ||
333 | eng_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 | |||
343 | static int | ||
344 | eng_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 | |||
355 | static int | ||
356 | eng_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 | |||
367 | static void * | ||
368 | eng_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 | |||
402 | static void * | ||
403 | eng_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 | |||
411 | static void | ||
412 | eng_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 | |||
419 | static char * | ||
420 | eng_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 | |||
432 | static char * | ||
433 | eng_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 | |||
443 | static void | ||
444 | eng_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 | // | ||
490 | typedef struct _Native Native; | ||
491 | |||
492 | struct _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 | |||
501 | static void | ||
502 | _native_bind_cb(void *data, void *image) | ||
503 | { | ||
504 | } | ||
505 | |||
506 | static void | ||
507 | _native_unbind_cb(void *data, void *image) | ||
508 | { | ||
509 | } | ||
510 | |||
511 | static void | ||
512 | _native_free_cb(void *data, void *image) | ||
513 | { | ||
514 | } | ||
515 | |||
516 | static void * | ||
517 | eng_image_native_set(void *data, void *image, void *native) | ||
518 | { | ||
519 | return NULL; | ||
520 | } | ||
521 | |||
522 | static void * | ||
523 | eng_image_native_get(void *data, void *image) | ||
524 | { | ||
525 | return NULL; | ||
526 | } | ||
527 | |||
528 | // | ||
529 | // | ||
530 | ///////////////////////////////////////////////////////////////////////// | ||
531 | |||
532 | static void * | ||
533 | eng_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 | |||
542 | static void * | ||
543 | eng_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 | |||
551 | static void * | ||
552 | eng_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 | |||
560 | static void | ||
561 | eng_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 | |||
570 | static void | ||
571 | eng_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 | |||
586 | static void * | ||
587 | eng_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 | |||
636 | static void * | ||
637 | eng_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 | |||
649 | static void * | ||
650 | eng_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 | |||
712 | static void * | ||
713 | eng_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 | |||
762 | static void | ||
763 | eng_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 | |||
775 | static void | ||
776 | eng_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 | |||
788 | static void | ||
789 | eng_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 | |||
803 | static void | ||
804 | eng_image_scale_hint_set(void *data __UNUSED__, void *image, int hint) | ||
805 | { | ||
806 | } | ||
807 | |||
808 | static void | ||
809 | eng_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 | |||
819 | static void * | ||
820 | eng_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 | |||
828 | static void | ||
829 | eng_image_map_surface_free(void *data __UNUSED__, void *surface) | ||
830 | { | ||
831 | evas_gl_common_image_free(surface); | ||
832 | } | ||
833 | |||
834 | static int | ||
835 | eng_image_scale_hint_get(void *data __UNUSED__, void *image) | ||
836 | { | ||
837 | return EVAS_IMAGE_SCALE_HINT_NONE; | ||
838 | } | ||
839 | |||
840 | static void | ||
841 | eng_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 | |||
871 | static Eina_Bool | ||
872 | eng_canvas_alpha_get(void *data __UNUSED__, void *info __UNUSED__) | ||
873 | { | ||
874 | // FIXME: support ARGB gl targets!!! | ||
875 | return EINA_FALSE; | ||
876 | } | ||
877 | |||
878 | static int | ||
879 | eng_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 | |||
889 | static int | ||
890 | module_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 | |||
992 | static void | ||
993 | module_close(Evas_Module *em) | ||
994 | { | ||
995 | eina_log_domain_unregister(_evas_engine_GL_SDL_log_dom); | ||
996 | evas_gl_common_module_close(); | ||
997 | } | ||
998 | |||
999 | static 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 | |||
1010 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, gl_sdl); | ||
1011 | |||
1012 | #ifndef EVAS_STATIC_BUILD_GL_SDL | ||
1013 | EVAS_EINA_MODULE_DEFINE(engine, gl_sdl); | ||
1014 | #endif | ||
1015 | |||
1016 | static 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 deleted file mode 100644 index 7d46720..0000000 --- a/libraries/evas/src/modules/engines/gl_sdl/evas_engine.h +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
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 | |||
26 | extern 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 | |||
52 | typedef struct _Render_Engine Render_Engine; | ||
53 | struct _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 | ||