diff options
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_cocoa')
6 files changed, 0 insertions, 2583 deletions
diff --git a/libraries/evas/src/modules/engines/gl_cocoa/Evas_Engine_GL_Cocoa.h b/libraries/evas/src/modules/engines/gl_cocoa/Evas_Engine_GL_Cocoa.h deleted file mode 100644 index eb04d28..0000000 --- a/libraries/evas/src/modules/engines/gl_cocoa/Evas_Engine_GL_Cocoa.h +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | #ifndef __EVAS_ENGINE_GL_COCOA_H__ | ||
2 | #define __EVAS_ENGINE_GL_COCOA_H__ | ||
3 | |||
4 | typedef struct _Evas_Engine_Info_GL_Cocoa Evas_Engine_Info_GL_Cocoa; | ||
5 | |||
6 | struct _Evas_Engine_Info_GL_Cocoa | ||
7 | { | ||
8 | /* PRIVATE - don't mess with this baby or evas will poke its tongue out */ | ||
9 | /* at you and make nasty noises */ | ||
10 | Evas_Engine_Info magic; | ||
11 | |||
12 | /* engine specific data & parameters it needs to set up */ | ||
13 | void *window; | ||
14 | void *view; | ||
15 | int depth; | ||
16 | |||
17 | }; | ||
18 | |||
19 | |||
20 | #endif /* __EVAS_ENGINE_GL_COCOA_H__ */ | ||
diff --git a/libraries/evas/src/modules/engines/gl_cocoa/Makefile.am b/libraries/evas/src/modules/engines/gl_cocoa/Makefile.am deleted file mode 100644 index d502846..0000000 --- a/libraries/evas/src/modules/engines/gl_cocoa/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 | @EINA_CFLAGS@ \ | ||
10 | @GL_EET_CFLAGS@ \ | ||
11 | @FREETYPE_CFLAGS@ \ | ||
12 | @evas_engine_gl_cocoa_cflags@ | ||
13 | |||
14 | if BUILD_ENGINE_GL_COCOA | ||
15 | |||
16 | GL_COCOA_SOURCES = evas_engine.c\ | ||
17 | evas_gl_cocoa_main.m | ||
18 | |||
19 | |||
20 | GL_COCOA_LIBADD = @evas_engine_gl_cocoa_libs@ $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la | ||
21 | |||
22 | |||
23 | includes_HEADERS = Evas_Engine_GL_Cocoa.h | ||
24 | includesdir = $(includedir)/evas-@VMAJ@ | ||
25 | |||
26 | if !EVAS_STATIC_BUILD_GL_COCOA | ||
27 | |||
28 | pkgdir = $(libdir)/evas/modules/engines/gl_cocoa/$(MODULE_ARCH) | ||
29 | pkg_LTLIBRARIES = module.la | ||
30 | |||
31 | module_la_SOURCES = $(GL_COCOA_SOURCES) | ||
32 | module_la_LIBADD = @EINA_LIBS@ @GL_EET_LIBS@ $(GL_COCOA_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_cocoa.la | ||
39 | |||
40 | libevas_engine_gl_cocoa_la_SOURCES = $(GL_COCOA_SOURCES) | ||
41 | libevas_engine_gl_cocoa_la_LIBADD = $(GL_COCOA_LIBADD) | ||
42 | |||
43 | endif | ||
44 | endif | ||
45 | |||
46 | EXTRA_DIST = evas_engine.h | ||
diff --git a/libraries/evas/src/modules/engines/gl_cocoa/Makefile.in b/libraries/evas/src/modules/engines/gl_cocoa/Makefile.in deleted file mode 100644 index 049acb2..0000000 --- a/libraries/evas/src/modules/engines/gl_cocoa/Makefile.in +++ /dev/null | |||
@@ -1,852 +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_cocoa | ||
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_COCOA_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la | ||
85 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_TRUE@libevas_engine_gl_cocoa_la_DEPENDENCIES = $(am__DEPENDENCIES_1) | ||
86 | am__libevas_engine_gl_cocoa_la_SOURCES_DIST = evas_engine.c \ | ||
87 | evas_gl_cocoa_main.m | ||
88 | @BUILD_ENGINE_GL_COCOA_TRUE@am__objects_1 = evas_engine.lo \ | ||
89 | @BUILD_ENGINE_GL_COCOA_TRUE@ evas_gl_cocoa_main.lo | ||
90 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_TRUE@am_libevas_engine_gl_cocoa_la_OBJECTS = $(am__objects_1) | ||
91 | libevas_engine_gl_cocoa_la_OBJECTS = \ | ||
92 | $(am_libevas_engine_gl_cocoa_la_OBJECTS) | ||
93 | AM_V_lt = $(am__v_lt_$(V)) | ||
94 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
95 | am__v_lt_0 = --silent | ||
96 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_TRUE@am_libevas_engine_gl_cocoa_la_rpath = | ||
97 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@module_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ | ||
98 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@ $(top_builddir)/src/lib/libevas.la | ||
99 | am__module_la_SOURCES_DIST = evas_engine.c evas_gl_cocoa_main.m | ||
100 | @BUILD_ENGINE_GL_COCOA_TRUE@am__objects_2 = module_la-evas_engine.lo \ | ||
101 | @BUILD_ENGINE_GL_COCOA_TRUE@ module_la-evas_gl_cocoa_main.lo | ||
102 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@am_module_la_OBJECTS = $(am__objects_2) | ||
103 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
104 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) $(module_la_LIBTOOLFLAGS) \ | ||
105 | $(LIBTOOLFLAGS) --mode=link $(OBJCLD) $(AM_OBJCFLAGS) \ | ||
106 | $(OBJCFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
107 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@am_module_la_rpath = -rpath \ | ||
108 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@ $(pkgdir) | ||
109 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
110 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
111 | am__depfiles_maybe = depfiles | ||
112 | am__mv = mv -f | ||
113 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
114 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
115 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
116 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
117 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
118 | $(AM_CFLAGS) $(CFLAGS) | ||
119 | AM_V_CC = $(am__v_CC_$(V)) | ||
120 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
121 | am__v_CC_0 = @echo " CC " $@; | ||
122 | AM_V_at = $(am__v_at_$(V)) | ||
123 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
124 | am__v_at_0 = @ | ||
125 | CCLD = $(CC) | ||
126 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
127 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
128 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
129 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
130 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
131 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
132 | OBJCCOMPILE = $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
133 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) | ||
134 | LTOBJCCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ | ||
135 | $(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) \ | ||
136 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
137 | $(AM_OBJCFLAGS) $(OBJCFLAGS) | ||
138 | AM_V_OBJC = $(am__v_OBJC_$(V)) | ||
139 | am__v_OBJC_ = $(am__v_OBJC_$(AM_DEFAULT_VERBOSITY)) | ||
140 | am__v_OBJC_0 = @echo " OBJC " $@; | ||
141 | OBJCLD = $(OBJC) | ||
142 | OBJCLINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
143 | --mode=link $(OBJCLD) $(AM_OBJCFLAGS) $(OBJCFLAGS) \ | ||
144 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
145 | AM_V_OBJCLD = $(am__v_OBJCLD_$(V)) | ||
146 | am__v_OBJCLD_ = $(am__v_OBJCLD_$(AM_DEFAULT_VERBOSITY)) | ||
147 | am__v_OBJCLD_0 = @echo " OBJCLD" $@; | ||
148 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
149 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
150 | am__v_GEN_0 = @echo " GEN " $@; | ||
151 | SOURCES = $(libevas_engine_gl_cocoa_la_SOURCES) $(module_la_SOURCES) | ||
152 | DIST_SOURCES = $(am__libevas_engine_gl_cocoa_la_SOURCES_DIST) \ | ||
153 | $(am__module_la_SOURCES_DIST) | ||
154 | am__includes_HEADERS_DIST = Evas_Engine_GL_Cocoa.h | ||
155 | HEADERS = $(includes_HEADERS) | ||
156 | ETAGS = etags | ||
157 | CTAGS = ctags | ||
158 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
159 | ACLOCAL = @ACLOCAL@ | ||
160 | ALLOCA = @ALLOCA@ | ||
161 | AMTAR = @AMTAR@ | ||
162 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
163 | AR = @AR@ | ||
164 | AS = @AS@ | ||
165 | AUTOCONF = @AUTOCONF@ | ||
166 | AUTOHEADER = @AUTOHEADER@ | ||
167 | AUTOMAKE = @AUTOMAKE@ | ||
168 | AWK = @AWK@ | ||
169 | CC = @CC@ | ||
170 | CCDEPMODE = @CCDEPMODE@ | ||
171 | CFLAGS = @CFLAGS@ | ||
172 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
173 | CHECK_LIBS = @CHECK_LIBS@ | ||
174 | CPP = @CPP@ | ||
175 | CPPFLAGS = @CPPFLAGS@ | ||
176 | CXX = @CXX@ | ||
177 | CXXCPP = @CXXCPP@ | ||
178 | CXXDEPMODE = @CXXDEPMODE@ | ||
179 | CXXFLAGS = @CXXFLAGS@ | ||
180 | CYGPATH_W = @CYGPATH_W@ | ||
181 | DEFS = @DEFS@ | ||
182 | DEPDIR = @DEPDIR@ | ||
183 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
184 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
185 | DLLTOOL = @DLLTOOL@ | ||
186 | DSYMUTIL = @DSYMUTIL@ | ||
187 | DUMPBIN = @DUMPBIN@ | ||
188 | ECHO_C = @ECHO_C@ | ||
189 | ECHO_N = @ECHO_N@ | ||
190 | ECHO_T = @ECHO_T@ | ||
191 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
192 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
193 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
194 | EDB_LIBS = @EDB_LIBS@ | ||
195 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
196 | EDJE_LIBS = @EDJE_LIBS@ | ||
197 | EET_CFLAGS = @EET_CFLAGS@ | ||
198 | EET_LIBS = @EET_LIBS@ | ||
199 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
200 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
201 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
202 | EGREP = @EGREP@ | ||
203 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
204 | EINA_LIBS = @EINA_LIBS@ | ||
205 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
206 | EVAS_LIBS = @EVAS_LIBS@ | ||
207 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
208 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
209 | EVIL_LIBS = @EVIL_LIBS@ | ||
210 | EXEEXT = @EXEEXT@ | ||
211 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
212 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
213 | FGREP = @FGREP@ | ||
214 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
215 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
216 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
217 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
218 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
219 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
220 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
221 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
222 | GREP = @GREP@ | ||
223 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
224 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
225 | INSTALL = @INSTALL@ | ||
226 | INSTALL_DATA = @INSTALL_DATA@ | ||
227 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
228 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
229 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
230 | LD = @LD@ | ||
231 | LDFLAGS = @LDFLAGS@ | ||
232 | LIBOBJS = @LIBOBJS@ | ||
233 | LIBS = @LIBS@ | ||
234 | LIBTOOL = @LIBTOOL@ | ||
235 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
236 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
237 | LIPO = @LIPO@ | ||
238 | LN_S = @LN_S@ | ||
239 | LTLIBOBJS = @LTLIBOBJS@ | ||
240 | MAKEINFO = @MAKEINFO@ | ||
241 | MKDIR_P = @MKDIR_P@ | ||
242 | MODULE_ARCH = @MODULE_ARCH@ | ||
243 | NM = @NM@ | ||
244 | NMEDIT = @NMEDIT@ | ||
245 | OBJC = @OBJC@ | ||
246 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
247 | OBJCFLAGS = @OBJCFLAGS@ | ||
248 | OBJDUMP = @OBJDUMP@ | ||
249 | OBJEXT = @OBJEXT@ | ||
250 | OTOOL = @OTOOL@ | ||
251 | OTOOL64 = @OTOOL64@ | ||
252 | PACKAGE = @PACKAGE@ | ||
253 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
254 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
255 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
256 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
257 | PACKAGE_URL = @PACKAGE_URL@ | ||
258 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
259 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
260 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
261 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
262 | PKG_CONFIG = @PKG_CONFIG@ | ||
263 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
264 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
265 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
266 | PNG_LIBS = @PNG_LIBS@ | ||
267 | RANLIB = @RANLIB@ | ||
268 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
269 | SDL_LIBS = @SDL_LIBS@ | ||
270 | SED = @SED@ | ||
271 | SET_MAKE = @SET_MAKE@ | ||
272 | SHELL = @SHELL@ | ||
273 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
274 | STRIP = @STRIP@ | ||
275 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
276 | SVG_LIBS = @SVG_LIBS@ | ||
277 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
278 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
279 | VERSION = @VERSION@ | ||
280 | VMAJ = @VMAJ@ | ||
281 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
282 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
283 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
284 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
285 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
286 | XCB_LIBS = @XCB_LIBS@ | ||
287 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
288 | XEXT_LIBS = @XEXT_LIBS@ | ||
289 | XMKMF = @XMKMF@ | ||
290 | X_CFLAGS = @X_CFLAGS@ | ||
291 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
292 | X_LIBS = @X_LIBS@ | ||
293 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
294 | abs_builddir = @abs_builddir@ | ||
295 | abs_srcdir = @abs_srcdir@ | ||
296 | abs_top_builddir = @abs_top_builddir@ | ||
297 | abs_top_srcdir = @abs_top_srcdir@ | ||
298 | ac_ct_CC = @ac_ct_CC@ | ||
299 | ac_ct_CXX = @ac_ct_CXX@ | ||
300 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
301 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
302 | altivec_cflags = @altivec_cflags@ | ||
303 | am__include = @am__include@ | ||
304 | am__leading_dot = @am__leading_dot@ | ||
305 | am__quote = @am__quote@ | ||
306 | am__tar = @am__tar@ | ||
307 | am__untar = @am__untar@ | ||
308 | bindir = @bindir@ | ||
309 | build = @build@ | ||
310 | build_alias = @build_alias@ | ||
311 | build_cpu = @build_cpu@ | ||
312 | build_os = @build_os@ | ||
313 | build_vendor = @build_vendor@ | ||
314 | builddir = @builddir@ | ||
315 | datadir = @datadir@ | ||
316 | datarootdir = @datarootdir@ | ||
317 | dlopen_libs = @dlopen_libs@ | ||
318 | docdir = @docdir@ | ||
319 | dvidir = @dvidir@ | ||
320 | edje_cc = @edje_cc@ | ||
321 | efl_doxygen = @efl_doxygen@ | ||
322 | efl_have_doxygen = @efl_have_doxygen@ | ||
323 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
324 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
325 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
326 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
327 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
328 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
329 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
330 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
331 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
332 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
333 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
334 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
335 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
336 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
337 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
338 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
339 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
340 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
341 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
342 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
343 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
344 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
345 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
346 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
347 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
348 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
349 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
350 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
351 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
352 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
353 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
354 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
355 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
356 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
357 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
358 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
359 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
360 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
361 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
362 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
363 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
364 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
365 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
366 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
367 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
368 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
369 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
370 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
371 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
372 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
373 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
374 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
375 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
376 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
377 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
378 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
379 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
380 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
381 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
382 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
383 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
384 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
385 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
386 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
387 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
388 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
389 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
390 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
391 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
392 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
393 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
394 | exec_prefix = @exec_prefix@ | ||
395 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
396 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
397 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
398 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
399 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
400 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
401 | have_lcov = @have_lcov@ | ||
402 | host = @host@ | ||
403 | host_alias = @host_alias@ | ||
404 | host_cpu = @host_cpu@ | ||
405 | host_os = @host_os@ | ||
406 | host_vendor = @host_vendor@ | ||
407 | htmldir = @htmldir@ | ||
408 | includedir = @includedir@ | ||
409 | infodir = @infodir@ | ||
410 | install_sh = @install_sh@ | ||
411 | libdir = @libdir@ | ||
412 | libexecdir = @libexecdir@ | ||
413 | localedir = @localedir@ | ||
414 | localstatedir = @localstatedir@ | ||
415 | lt_ECHO = @lt_ECHO@ | ||
416 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
417 | mandir = @mandir@ | ||
418 | mkdir_p = @mkdir_p@ | ||
419 | oldincludedir = @oldincludedir@ | ||
420 | pdfdir = @pdfdir@ | ||
421 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
422 | prefix = @prefix@ | ||
423 | program_transform_name = @program_transform_name@ | ||
424 | psdir = @psdir@ | ||
425 | pthread_cflags = @pthread_cflags@ | ||
426 | pthread_libs = @pthread_libs@ | ||
427 | release_info = @release_info@ | ||
428 | requirement_evas = @requirement_evas@ | ||
429 | sbindir = @sbindir@ | ||
430 | sharedstatedir = @sharedstatedir@ | ||
431 | srcdir = @srcdir@ | ||
432 | sysconfdir = @sysconfdir@ | ||
433 | target_alias = @target_alias@ | ||
434 | top_build_prefix = @top_build_prefix@ | ||
435 | top_builddir = @top_builddir@ | ||
436 | top_srcdir = @top_srcdir@ | ||
437 | version_info = @version_info@ | ||
438 | MAINTAINERCLEANFILES = Makefile.in | ||
439 | AM_CPPFLAGS = \ | ||
440 | -I. \ | ||
441 | -I$(top_srcdir)/src/lib \ | ||
442 | -I$(top_srcdir)/src/lib/include \ | ||
443 | -I$(top_srcdir)/src/modules/engines/gl_common \ | ||
444 | @EINA_CFLAGS@ \ | ||
445 | @GL_EET_CFLAGS@ \ | ||
446 | @FREETYPE_CFLAGS@ \ | ||
447 | @evas_engine_gl_cocoa_cflags@ | ||
448 | |||
449 | @BUILD_ENGINE_GL_COCOA_TRUE@GL_COCOA_SOURCES = evas_engine.c\ | ||
450 | @BUILD_ENGINE_GL_COCOA_TRUE@evas_gl_cocoa_main.m | ||
451 | |||
452 | @BUILD_ENGINE_GL_COCOA_TRUE@GL_COCOA_LIBADD = @evas_engine_gl_cocoa_libs@ $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la | ||
453 | @BUILD_ENGINE_GL_COCOA_TRUE@includes_HEADERS = Evas_Engine_GL_Cocoa.h | ||
454 | @BUILD_ENGINE_GL_COCOA_TRUE@includesdir = $(includedir)/evas-@VMAJ@ | ||
455 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@pkgdir = $(libdir)/evas/modules/engines/gl_cocoa/$(MODULE_ARCH) | ||
456 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@pkg_LTLIBRARIES = module.la | ||
457 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@module_la_SOURCES = $(GL_COCOA_SOURCES) | ||
458 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@module_la_LIBADD = @EINA_LIBS@ @GL_EET_LIBS@ $(GL_COCOA_LIBADD) $(top_builddir)/src/lib/libevas.la @dlopen_libs@ | ||
459 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@module_la_LDFLAGS = -module -avoid-version | ||
460 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
461 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_TRUE@noinst_LTLIBRARIES = libevas_engine_gl_cocoa.la | ||
462 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_TRUE@libevas_engine_gl_cocoa_la_SOURCES = $(GL_COCOA_SOURCES) | ||
463 | @BUILD_ENGINE_GL_COCOA_TRUE@@EVAS_STATIC_BUILD_GL_COCOA_TRUE@libevas_engine_gl_cocoa_la_LIBADD = $(GL_COCOA_LIBADD) | ||
464 | EXTRA_DIST = evas_engine.h | ||
465 | all: all-am | ||
466 | |||
467 | .SUFFIXES: | ||
468 | .SUFFIXES: .c .lo .m .o .obj | ||
469 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
470 | @for dep in $?; do \ | ||
471 | case '$(am__configure_deps)' in \ | ||
472 | *$$dep*) \ | ||
473 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
474 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
475 | exit 1;; \ | ||
476 | esac; \ | ||
477 | done; \ | ||
478 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/engines/gl_cocoa/Makefile'; \ | ||
479 | $(am__cd) $(top_srcdir) && \ | ||
480 | $(AUTOMAKE) --gnu src/modules/engines/gl_cocoa/Makefile | ||
481 | .PRECIOUS: Makefile | ||
482 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
483 | @case '$?' in \ | ||
484 | *config.status*) \ | ||
485 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
486 | *) \ | ||
487 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
488 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
489 | esac; | ||
490 | |||
491 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
492 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
493 | |||
494 | $(top_srcdir)/configure: $(am__configure_deps) | ||
495 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
496 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
497 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
498 | $(am__aclocal_m4_deps): | ||
499 | |||
500 | clean-noinstLTLIBRARIES: | ||
501 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
502 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
503 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
504 | test "$$dir" != "$$p" || dir=.; \ | ||
505 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
506 | rm -f "$${dir}/so_locations"; \ | ||
507 | done | ||
508 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
509 | @$(NORMAL_INSTALL) | ||
510 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
511 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
512 | list2=; for p in $$list; do \ | ||
513 | if test -f $$p; then \ | ||
514 | list2="$$list2 $$p"; \ | ||
515 | else :; fi; \ | ||
516 | done; \ | ||
517 | test -z "$$list2" || { \ | ||
518 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
519 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
520 | } | ||
521 | |||
522 | uninstall-pkgLTLIBRARIES: | ||
523 | @$(NORMAL_UNINSTALL) | ||
524 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
525 | for p in $$list; do \ | ||
526 | $(am__strip_dir) \ | ||
527 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
528 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
529 | done | ||
530 | |||
531 | clean-pkgLTLIBRARIES: | ||
532 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
533 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
534 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
535 | test "$$dir" != "$$p" || dir=.; \ | ||
536 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
537 | rm -f "$${dir}/so_locations"; \ | ||
538 | done | ||
539 | libevas_engine_gl_cocoa.la: $(libevas_engine_gl_cocoa_la_OBJECTS) $(libevas_engine_gl_cocoa_la_DEPENDENCIES) | ||
540 | $(AM_V_OBJCLD)$(OBJCLINK) $(am_libevas_engine_gl_cocoa_la_rpath) $(libevas_engine_gl_cocoa_la_OBJECTS) $(libevas_engine_gl_cocoa_la_LIBADD) $(LIBS) | ||
541 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
542 | $(AM_V_OBJCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
543 | |||
544 | mostlyclean-compile: | ||
545 | -rm -f *.$(OBJEXT) | ||
546 | |||
547 | distclean-compile: | ||
548 | -rm -f *.tab.c | ||
549 | |||
550 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_engine.Plo@am__quote@ | ||
551 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_gl_cocoa_main.Plo@am__quote@ | ||
552 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_engine.Plo@am__quote@ | ||
553 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_gl_cocoa_main.Plo@am__quote@ | ||
554 | |||
555 | .c.o: | ||
556 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
557 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
558 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
559 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
560 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
561 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
562 | |||
563 | .c.obj: | ||
564 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
565 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
566 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
567 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
568 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
569 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
570 | |||
571 | .c.lo: | ||
572 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
573 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
574 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
575 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
576 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
577 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
578 | |||
579 | module_la-evas_engine.lo: evas_engine.c | ||
580 | @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 | ||
581 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_engine.Tpo $(DEPDIR)/module_la-evas_engine.Plo | ||
582 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
583 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_engine.c' object='module_la-evas_engine.lo' libtool=yes @AMDEPBACKSLASH@ | ||
584 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
585 | @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 | ||
586 | |||
587 | .m.o: | ||
588 | @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(OBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
589 | @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
590 | @am__fastdepOBJC_FALSE@ $(AM_V_OBJC) @AM_BACKSLASH@ | ||
591 | @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
592 | @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
593 | @am__fastdepOBJC_FALSE@ $(OBJCCOMPILE) -c -o $@ $< | ||
594 | |||
595 | .m.obj: | ||
596 | @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(OBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
597 | @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
598 | @am__fastdepOBJC_FALSE@ $(AM_V_OBJC) @AM_BACKSLASH@ | ||
599 | @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
600 | @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
601 | @am__fastdepOBJC_FALSE@ $(OBJCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | ||
602 | |||
603 | .m.lo: | ||
604 | @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(LTOBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
605 | @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
606 | @am__fastdepOBJC_FALSE@ $(AM_V_OBJC) @AM_BACKSLASH@ | ||
607 | @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
608 | @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
609 | @am__fastdepOBJC_FALSE@ $(LTOBJCCOMPILE) -c -o $@ $< | ||
610 | |||
611 | module_la-evas_gl_cocoa_main.lo: evas_gl_cocoa_main.m | ||
612 | @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(LIBTOOL) $(AM_V_lt) $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) -MT module_la-evas_gl_cocoa_main.lo -MD -MP -MF $(DEPDIR)/module_la-evas_gl_cocoa_main.Tpo -c -o module_la-evas_gl_cocoa_main.lo `test -f 'evas_gl_cocoa_main.m' || echo '$(srcdir)/'`evas_gl_cocoa_main.m | ||
613 | @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_gl_cocoa_main.Tpo $(DEPDIR)/module_la-evas_gl_cocoa_main.Plo | ||
614 | @am__fastdepOBJC_FALSE@ $(AM_V_OBJC) @AM_BACKSLASH@ | ||
615 | @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ source='evas_gl_cocoa_main.m' object='module_la-evas_gl_cocoa_main.lo' libtool=yes @AMDEPBACKSLASH@ | ||
616 | @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
617 | @am__fastdepOBJC_FALSE@ $(LIBTOOL) $(AM_V_lt) $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) -c -o module_la-evas_gl_cocoa_main.lo `test -f 'evas_gl_cocoa_main.m' || echo '$(srcdir)/'`evas_gl_cocoa_main.m | ||
618 | |||
619 | mostlyclean-libtool: | ||
620 | -rm -f *.lo | ||
621 | |||
622 | clean-libtool: | ||
623 | -rm -rf .libs _libs | ||
624 | install-includesHEADERS: $(includes_HEADERS) | ||
625 | @$(NORMAL_INSTALL) | ||
626 | test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)" | ||
627 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
628 | for p in $$list; do \ | ||
629 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
630 | echo "$$d$$p"; \ | ||
631 | done | $(am__base_list) | \ | ||
632 | while read files; do \ | ||
633 | echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includesdir)'"; \ | ||
634 | $(INSTALL_HEADER) $$files "$(DESTDIR)$(includesdir)" || exit $$?; \ | ||
635 | done | ||
636 | |||
637 | uninstall-includesHEADERS: | ||
638 | @$(NORMAL_UNINSTALL) | ||
639 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
640 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ | ||
641 | test -n "$$files" || exit 0; \ | ||
642 | echo " ( cd '$(DESTDIR)$(includesdir)' && rm -f" $$files ")"; \ | ||
643 | cd "$(DESTDIR)$(includesdir)" && rm -f $$files | ||
644 | |||
645 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
646 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
647 | unique=`for i in $$list; do \ | ||
648 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
649 | done | \ | ||
650 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
651 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
652 | mkid -fID $$unique | ||
653 | tags: TAGS | ||
654 | |||
655 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
656 | $(TAGS_FILES) $(LISP) | ||
657 | set x; \ | ||
658 | here=`pwd`; \ | ||
659 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
660 | unique=`for i in $$list; do \ | ||
661 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
662 | done | \ | ||
663 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
664 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
665 | shift; \ | ||
666 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
667 | test -n "$$unique" || unique=$$empty_fix; \ | ||
668 | if test $$# -gt 0; then \ | ||
669 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
670 | "$$@" $$unique; \ | ||
671 | else \ | ||
672 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
673 | $$unique; \ | ||
674 | fi; \ | ||
675 | fi | ||
676 | ctags: CTAGS | ||
677 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
678 | $(TAGS_FILES) $(LISP) | ||
679 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
680 | unique=`for i in $$list; do \ | ||
681 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
682 | done | \ | ||
683 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
684 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
685 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
686 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
687 | $$unique | ||
688 | |||
689 | GTAGS: | ||
690 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
691 | && $(am__cd) $(top_srcdir) \ | ||
692 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
693 | |||
694 | distclean-tags: | ||
695 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
696 | |||
697 | distdir: $(DISTFILES) | ||
698 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
699 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
700 | list='$(DISTFILES)'; \ | ||
701 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
702 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
703 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
704 | case $$dist_files in \ | ||
705 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
706 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
707 | sort -u` ;; \ | ||
708 | esac; \ | ||
709 | for file in $$dist_files; do \ | ||
710 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
711 | if test -d $$d/$$file; then \ | ||
712 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
713 | if test -d "$(distdir)/$$file"; then \ | ||
714 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
715 | fi; \ | ||
716 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
717 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
718 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
719 | fi; \ | ||
720 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
721 | else \ | ||
722 | test -f "$(distdir)/$$file" \ | ||
723 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
724 | || exit 1; \ | ||
725 | fi; \ | ||
726 | done | ||
727 | check-am: all-am | ||
728 | check: check-am | ||
729 | all-am: Makefile $(LTLIBRARIES) $(HEADERS) | ||
730 | installdirs: | ||
731 | for dir in "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"; do \ | ||
732 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
733 | done | ||
734 | install: install-am | ||
735 | install-exec: install-exec-am | ||
736 | install-data: install-data-am | ||
737 | uninstall: uninstall-am | ||
738 | |||
739 | install-am: all-am | ||
740 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
741 | |||
742 | installcheck: installcheck-am | ||
743 | install-strip: | ||
744 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
745 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
746 | `test -z '$(STRIP)' || \ | ||
747 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
748 | mostlyclean-generic: | ||
749 | |||
750 | clean-generic: | ||
751 | |||
752 | distclean-generic: | ||
753 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
754 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
755 | |||
756 | maintainer-clean-generic: | ||
757 | @echo "This command is intended for maintainers to use" | ||
758 | @echo "it deletes files that may require special tools to rebuild." | ||
759 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
760 | clean: clean-am | ||
761 | |||
762 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
763 | clean-pkgLTLIBRARIES mostlyclean-am | ||
764 | |||
765 | distclean: distclean-am | ||
766 | -rm -rf ./$(DEPDIR) | ||
767 | -rm -f Makefile | ||
768 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
769 | distclean-tags | ||
770 | |||
771 | dvi: dvi-am | ||
772 | |||
773 | dvi-am: | ||
774 | |||
775 | html: html-am | ||
776 | |||
777 | html-am: | ||
778 | |||
779 | info: info-am | ||
780 | |||
781 | info-am: | ||
782 | |||
783 | install-data-am: install-includesHEADERS install-pkgLTLIBRARIES | ||
784 | |||
785 | install-dvi: install-dvi-am | ||
786 | |||
787 | install-dvi-am: | ||
788 | |||
789 | install-exec-am: | ||
790 | |||
791 | install-html: install-html-am | ||
792 | |||
793 | install-html-am: | ||
794 | |||
795 | install-info: install-info-am | ||
796 | |||
797 | install-info-am: | ||
798 | |||
799 | install-man: | ||
800 | |||
801 | install-pdf: install-pdf-am | ||
802 | |||
803 | install-pdf-am: | ||
804 | |||
805 | install-ps: install-ps-am | ||
806 | |||
807 | install-ps-am: | ||
808 | |||
809 | installcheck-am: | ||
810 | |||
811 | maintainer-clean: maintainer-clean-am | ||
812 | -rm -rf ./$(DEPDIR) | ||
813 | -rm -f Makefile | ||
814 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
815 | |||
816 | mostlyclean: mostlyclean-am | ||
817 | |||
818 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
819 | mostlyclean-libtool | ||
820 | |||
821 | pdf: pdf-am | ||
822 | |||
823 | pdf-am: | ||
824 | |||
825 | ps: ps-am | ||
826 | |||
827 | ps-am: | ||
828 | |||
829 | uninstall-am: uninstall-includesHEADERS uninstall-pkgLTLIBRARIES | ||
830 | |||
831 | .MAKE: install-am install-strip | ||
832 | |||
833 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
834 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
835 | ctags distclean distclean-compile distclean-generic \ | ||
836 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
837 | html-am info info-am install install-am install-data \ | ||
838 | install-data-am install-dvi install-dvi-am install-exec \ | ||
839 | install-exec-am install-html install-html-am \ | ||
840 | install-includesHEADERS install-info install-info-am \ | ||
841 | install-man install-pdf install-pdf-am install-pkgLTLIBRARIES \ | ||
842 | install-ps install-ps-am install-strip installcheck \ | ||
843 | installcheck-am installdirs maintainer-clean \ | ||
844 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
845 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
846 | tags uninstall uninstall-am uninstall-includesHEADERS \ | ||
847 | uninstall-pkgLTLIBRARIES | ||
848 | |||
849 | |||
850 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
851 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
852 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.c b/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.c deleted file mode 100644 index fd95688..0000000 --- a/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.c +++ /dev/null | |||
@@ -1,1462 +0,0 @@ | |||
1 | #include "evas_common.h" /* Also includes international specific stuff */ | ||
2 | #include "evas_engine.h" | ||
3 | |||
4 | #include "evas_private.h" | ||
5 | |||
6 | #include <dlfcn.h> /* dlopen,dlclose,etc */ | ||
7 | #define EVAS_GL_NO_GL_H_CHECK 1 | ||
8 | #include "Evas_GL.h" | ||
9 | |||
10 | |||
11 | |||
12 | typedef struct _Render_Engine Render_Engine; | ||
13 | typedef struct _Render_Engine_GL_Surface Render_Engine_GL_Surface; | ||
14 | typedef struct _Render_Engine_GL_Context Render_Engine_GL_Context; | ||
15 | |||
16 | struct _Render_Engine | ||
17 | { | ||
18 | Evas_GL_Cocoa_Window *win; | ||
19 | int end; | ||
20 | }; | ||
21 | |||
22 | |||
23 | struct _Render_Engine_GL_Surface | ||
24 | { | ||
25 | int initialized; | ||
26 | int fbo_attached; | ||
27 | int w, h; | ||
28 | int depth_bits; | ||
29 | int stencil_bits; | ||
30 | |||
31 | // Render target texture/buffers | ||
32 | GLuint rt_tex; | ||
33 | GLint rt_internal_fmt; | ||
34 | GLenum rt_fmt; | ||
35 | GLuint rb_depth; | ||
36 | GLenum rb_depth_fmt; | ||
37 | GLuint rb_stencil; | ||
38 | GLenum rb_stencil_fmt; | ||
39 | |||
40 | Render_Engine_GL_Context *current_ctx; | ||
41 | }; | ||
42 | |||
43 | struct _Render_Engine_GL_Context | ||
44 | { | ||
45 | int initialized; | ||
46 | // EGLContext context; | ||
47 | |||
48 | GLuint fbo; | ||
49 | |||
50 | Render_Engine_GL_Surface *current_sfc; | ||
51 | }; | ||
52 | |||
53 | |||
54 | int _evas_engine_gl_cocoa_log_dom = -1; | ||
55 | /* function tables - filled in later (func and parent func) */ | ||
56 | static Evas_Func func, pfunc; | ||
57 | |||
58 | /* Function table for GL APIs */ | ||
59 | static Evas_GL_API gl_funcs; | ||
60 | |||
61 | |||
62 | |||
63 | static void * | ||
64 | eng_info(Evas *e __UNUSED__) | ||
65 | { | ||
66 | Evas_Engine_Info_GL_Cocoa *info; | ||
67 | info = calloc(1, sizeof(Evas_Engine_Info_GL_Cocoa)); | ||
68 | DBG("Info %p", info); | ||
69 | if (!info) return NULL; | ||
70 | info->magic.magic = rand(); | ||
71 | return info; | ||
72 | } | ||
73 | |||
74 | static void | ||
75 | eng_info_free(Evas *e __UNUSED__, void *info) | ||
76 | { | ||
77 | Evas_Engine_Info_GL_Cocoa *in; | ||
78 | |||
79 | DBG("Info %p", info); | ||
80 | eina_log_domain_unregister(_evas_engine_gl_cocoa_log_dom); | ||
81 | in = (Evas_Engine_Info_GL_Cocoa *)info; | ||
82 | free(in); | ||
83 | } | ||
84 | |||
85 | static int | ||
86 | eng_setup(Evas *e, void *in) | ||
87 | { | ||
88 | Render_Engine *re; | ||
89 | Evas_Engine_Info_GL_Cocoa *info; | ||
90 | |||
91 | DBG("Engine Setup"); | ||
92 | |||
93 | info = (Evas_Engine_Info_GL_Cocoa *)in; | ||
94 | if (!e->engine.data.output) | ||
95 | { | ||
96 | re = calloc(1, sizeof(Render_Engine)); | ||
97 | if (!re) return 0; | ||
98 | |||
99 | e->engine.data.output = re; | ||
100 | re->win = eng_window_new(info->window, | ||
101 | e->output.w, | ||
102 | e->output.h); | ||
103 | info->view = re->win->view; | ||
104 | if (!re->win) | ||
105 | { | ||
106 | free(re); | ||
107 | e->engine.data.output = NULL; | ||
108 | return 0; | ||
109 | } | ||
110 | |||
111 | evas_common_cpu_init(); | ||
112 | |||
113 | evas_common_blend_init(); | ||
114 | evas_common_image_init(); | ||
115 | evas_common_convert_init(); | ||
116 | evas_common_scale_init(); | ||
117 | evas_common_rectangle_init(); | ||
118 | evas_common_polygon_init(); | ||
119 | evas_common_line_init(); | ||
120 | evas_common_font_init(); | ||
121 | evas_common_draw_init(); | ||
122 | evas_common_tilebuf_init(); | ||
123 | } | ||
124 | else | ||
125 | { | ||
126 | re = e->engine.data.output; | ||
127 | eng_window_free(re->win); | ||
128 | re->win = eng_window_new(info->window, | ||
129 | e->output.w, | ||
130 | e->output.h); | ||
131 | info->view = re->win->view; | ||
132 | } | ||
133 | if (!e->engine.data.output) return 0; | ||
134 | |||
135 | if (!e->engine.data.context) | ||
136 | e->engine.data.context = | ||
137 | e->engine.func->context_new(e->engine.data.output); | ||
138 | eng_window_use(re->win); | ||
139 | |||
140 | return 1; | ||
141 | } | ||
142 | |||
143 | static void | ||
144 | eng_output_free(void *data) | ||
145 | { | ||
146 | Render_Engine *re; | ||
147 | |||
148 | DBG("Output free"); | ||
149 | re = (Render_Engine *)data; | ||
150 | eng_window_free(re->win); | ||
151 | free(re); | ||
152 | |||
153 | evas_common_font_shutdown(); | ||
154 | evas_common_image_shutdown(); | ||
155 | } | ||
156 | |||
157 | static void | ||
158 | eng_output_resize(void *data, int w, int h) | ||
159 | { | ||
160 | Render_Engine *re; | ||
161 | |||
162 | DBG("Output Resize %d %d", w, h); | ||
163 | |||
164 | re = (Render_Engine *)data; | ||
165 | re->win->width = w; | ||
166 | re->win->height = h; | ||
167 | |||
168 | eng_window_resize(re->win, w, h); | ||
169 | evas_gl_common_context_resize(re->win->gl_context, w, h, 0); | ||
170 | } | ||
171 | |||
172 | static void | ||
173 | eng_output_tile_size_set(void *data __UNUSED__, int w __UNUSED__, int h __UNUSED__) | ||
174 | { | ||
175 | DBG("tile size set"); | ||
176 | } | ||
177 | |||
178 | static void | ||
179 | eng_output_redraws_rect_add(void *data, int x, int y, int w, int h) | ||
180 | { | ||
181 | Render_Engine *re; | ||
182 | |||
183 | DBG("Redraw rect %d %d %d %d", x, y, w, h); | ||
184 | re = (Render_Engine *)data; | ||
185 | evas_gl_common_context_resize(re->win->gl_context, re->win->width, re->win->height, 0); | ||
186 | /* simple bounding box */ | ||
187 | RECTS_CLIP_TO_RECT(x, y, w, h, 0, 0, re->win->width, re->win->height); | ||
188 | if ((w <= 0) || (h <= 0)) return; | ||
189 | if (!re->win->draw.redraw) | ||
190 | { | ||
191 | #if 0 | ||
192 | re->win->draw.x1 = x; | ||
193 | re->win->draw.y1 = y; | ||
194 | re->win->draw.x2 = x + w - 1; | ||
195 | re->win->draw.y2 = y + h - 1; | ||
196 | #else | ||
197 | re->win->draw.x1 = 0; | ||
198 | re->win->draw.y1 = 0; | ||
199 | re->win->draw.x2 = re->win->width - 1; | ||
200 | re->win->draw.y2 = re->win->height - 1; | ||
201 | #endif | ||
202 | } | ||
203 | else | ||
204 | { | ||
205 | if (x < re->win->draw.x1) re->win->draw.x1 = x; | ||
206 | if (y < re->win->draw.y1) re->win->draw.y1 = y; | ||
207 | if ((x + w - 1) > re->win->draw.x2) re->win->draw.x2 = x + w - 1; | ||
208 | if ((y + h - 1) > re->win->draw.y2) re->win->draw.y2 = y + h - 1; | ||
209 | } | ||
210 | re->win->draw.redraw = 1; | ||
211 | } | ||
212 | |||
213 | static void | ||
214 | eng_output_redraws_rect_del(void *data __UNUSED__, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__) | ||
215 | { | ||
216 | } | ||
217 | |||
218 | static void | ||
219 | eng_output_redraws_clear(void *data) | ||
220 | { | ||
221 | Render_Engine *re; | ||
222 | |||
223 | re = (Render_Engine *)data; | ||
224 | re->win->draw.redraw = 0; | ||
225 | } | ||
226 | |||
227 | //#define SLOW_GL_COPY_RECT 1 | ||
228 | /* vsync games - not for now though */ | ||
229 | #define VSYNC_TO_SCREEN 1 | ||
230 | |||
231 | static void * | ||
232 | eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, int *cx, int *cy, int *cw, int *ch) | ||
233 | { | ||
234 | Render_Engine *re; | ||
235 | |||
236 | re = (Render_Engine *)data; | ||
237 | evas_gl_common_context_flush(re->win->gl_context); | ||
238 | /* get the upate rect surface - return engine data as dummy */ | ||
239 | if (!re->win->draw.redraw) | ||
240 | { | ||
241 | // printf("GL: NO updates!\n"); | ||
242 | return NULL; | ||
243 | } | ||
244 | // printf("GL: update....!\n"); | ||
245 | #ifdef SLOW_GL_COPY_RECT | ||
246 | /* if any update - just return the whole canvas - works with swap | ||
247 | * buffers then */ | ||
248 | if (x) *x = 0; | ||
249 | if (y) *y = 0; | ||
250 | if (w) *w = re->win->width; | ||
251 | if (h) *h = re->win->height; | ||
252 | if (cx) *cx = 0; | ||
253 | if (cy) *cy = 0; | ||
254 | if (cw) *cw = re->win->width; | ||
255 | if (ch) *ch = re->win->height; | ||
256 | #else | ||
257 | /* 1 update - INCREDIBLY SLOW if combined with swap_rect in flush. a gl | ||
258 | * problem where there just is no hardware path for somethnig that | ||
259 | * obviously SHOULD be there */ | ||
260 | /* only 1 update to minimise gl context games and rendering multiple update | ||
261 | * regions as evas does with other engines | ||
262 | */ | ||
263 | if (x) *x = re->win->draw.x1; | ||
264 | if (y) *y = re->win->draw.y1; | ||
265 | if (w) *w = re->win->draw.x2 - re->win->draw.x1 + 1; | ||
266 | if (h) *h = re->win->draw.y2 - re->win->draw.y1 + 1; | ||
267 | if (cx) *cx = re->win->draw.x1; | ||
268 | if (cy) *cy = re->win->draw.y1; | ||
269 | if (cw) *cw = re->win->draw.x2 - re->win->draw.x1 + 1; | ||
270 | if (ch) *ch = re->win->draw.y2 - re->win->draw.y1 + 1; | ||
271 | #endif | ||
272 | // clear buffer. only needed for dest alpha | ||
273 | // glClearColor(0.0f, 0.0f, 0.0f, 0.0f); | ||
274 | // glClear(GL_COLOR_BUFFER_BIT); | ||
275 | //x// printf("frame -> new\n"); | ||
276 | return re->win->gl_context->def_surface; | ||
277 | } | ||
278 | |||
279 | static void | ||
280 | eng_output_redraws_next_update_push(void *data, void *surface __UNUSED__, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__) | ||
281 | { | ||
282 | Render_Engine *re; | ||
283 | |||
284 | re = (Render_Engine *)data; | ||
285 | /* put back update surface.. in this case just unflag redraw */ | ||
286 | re->win->draw.redraw = 0; | ||
287 | re->win->draw.drew = 1; | ||
288 | evas_gl_common_context_flush(re->win->gl_context); | ||
289 | } | ||
290 | |||
291 | static void | ||
292 | eng_output_flush(void *data) | ||
293 | { | ||
294 | Render_Engine *re; | ||
295 | |||
296 | re = (Render_Engine *)data; | ||
297 | if (!re->win->draw.drew) return; | ||
298 | |||
299 | re->win->draw.drew = 0; | ||
300 | eng_window_use(re->win); | ||
301 | |||
302 | #ifdef VSYNC_TO_SCREEN | ||
303 | eng_window_vsync_set(1); | ||
304 | #endif | ||
305 | |||
306 | eng_window_swap_buffers(re->win); | ||
307 | |||
308 | } | ||
309 | |||
310 | static void | ||
311 | eng_output_idle_flush(void *data __UNUSED__) | ||
312 | { | ||
313 | } | ||
314 | |||
315 | static void | ||
316 | eng_context_cutout_add(void *data __UNUSED__, void *context, int x, int y, int w, int h) | ||
317 | { | ||
318 | evas_common_draw_context_add_cutout(context, x, y, w, h); | ||
319 | } | ||
320 | |||
321 | static void | ||
322 | eng_context_cutout_clear(void *data __UNUSED__, void *context) | ||
323 | { | ||
324 | evas_common_draw_context_clear_cutouts(context); | ||
325 | } | ||
326 | |||
327 | static void | ||
328 | eng_rectangle_draw(void *data, void *context, void *surface, int x, int y, int w, int h) | ||
329 | { | ||
330 | Render_Engine *re; | ||
331 | |||
332 | re = (Render_Engine *)data; | ||
333 | eng_window_use(re->win); | ||
334 | evas_gl_common_context_target_surface_set(re->win->gl_context, surface); | ||
335 | re->win->gl_context->dc = context; | ||
336 | evas_gl_common_rect_draw(re->win->gl_context, x, y, w, h); | ||
337 | } | ||
338 | |||
339 | static void | ||
340 | eng_line_draw(void *data, void *context, void *surface, int x1, int y1, int x2, int y2) | ||
341 | { | ||
342 | Render_Engine *re; | ||
343 | |||
344 | re = (Render_Engine *)data; | ||
345 | eng_window_use(re->win); | ||
346 | evas_gl_common_context_target_surface_set(re->win->gl_context, surface); | ||
347 | re->win->gl_context->dc = context; | ||
348 | evas_gl_common_line_draw(re->win->gl_context, x1, y1, x2, y2); | ||
349 | } | ||
350 | |||
351 | static void * | ||
352 | eng_polygon_point_add(void *data, void *context __UNUSED__, void *polygon, int x, int y) | ||
353 | { | ||
354 | Render_Engine *re; | ||
355 | |||
356 | re = (Render_Engine *)data; | ||
357 | return evas_gl_common_poly_point_add(polygon, x, y); | ||
358 | } | ||
359 | |||
360 | static void * | ||
361 | eng_polygon_points_clear(void *data, void *context __UNUSED__, void *polygon) | ||
362 | { | ||
363 | Render_Engine *re; | ||
364 | |||
365 | re = (Render_Engine *)data; | ||
366 | return evas_gl_common_poly_points_clear(polygon); | ||
367 | } | ||
368 | |||
369 | static void | ||
370 | eng_polygon_draw(void *data, void *context, void *surface __UNUSED__, void *polygon, int x, int y) | ||
371 | { | ||
372 | Render_Engine *re; | ||
373 | |||
374 | re = (Render_Engine *)data; | ||
375 | eng_window_use(re->win); | ||
376 | evas_gl_common_context_target_surface_set(re->win->gl_context, surface); | ||
377 | re->win->gl_context->dc = context; | ||
378 | evas_gl_common_poly_draw(re->win->gl_context, polygon, x, y); | ||
379 | } | ||
380 | |||
381 | static int | ||
382 | eng_image_alpha_get(void *data __UNUSED__, void *image) | ||
383 | { | ||
384 | // Render_Engine *re; | ||
385 | Evas_GL_Image *im; | ||
386 | |||
387 | // re = (Render_Engine *)data; | ||
388 | if (!image) return 1; | ||
389 | im = image; | ||
390 | return im->alpha; | ||
391 | } | ||
392 | |||
393 | static int | ||
394 | eng_image_colorspace_get(void *data __UNUSED__, void *image) | ||
395 | { | ||
396 | // Render_Engine *re; | ||
397 | Evas_GL_Image *im; | ||
398 | |||
399 | // re = (Render_Engine *)data; | ||
400 | if (!image) return EVAS_COLORSPACE_ARGB8888; | ||
401 | im = image; | ||
402 | return im->cs.space; | ||
403 | } | ||
404 | |||
405 | static void | ||
406 | eng_image_mask_create(void *data __UNUSED__, void *image) | ||
407 | { | ||
408 | Evas_GL_Image *im; | ||
409 | |||
410 | if (!image) return; | ||
411 | im = image; | ||
412 | if (!im->im->image.data) | ||
413 | evas_cache_image_load_data(&im->im->cache_entry); | ||
414 | if (!im->tex) | ||
415 | im->tex = evas_gl_common_texture_new(im->gc, im->im); | ||
416 | } | ||
417 | |||
418 | |||
419 | static void * | ||
420 | eng_image_alpha_set(void *data, void *image, int has_alpha) | ||
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->alpha == has_alpha) return image; | ||
429 | if (im->native.data) | ||
430 | { | ||
431 | im->alpha = has_alpha; | ||
432 | return image; | ||
433 | } | ||
434 | eng_window_use(re->win); | ||
435 | if ((im->tex) && (im->tex->pt->dyn.img)) | ||
436 | { | ||
437 | im->alpha = has_alpha; | ||
438 | im->tex->alpha = im->alpha; | ||
439 | return image; | ||
440 | } | ||
441 | /* FIXME: can move to gl_common */ | ||
442 | if (im->cs.space != EVAS_COLORSPACE_ARGB8888) return im; | ||
443 | if ((has_alpha) && (im->im->cache_entry.flags.alpha)) return image; | ||
444 | else if ((!has_alpha) && (!im->im->cache_entry.flags.alpha)) return image; | ||
445 | if (im->references > 1) | ||
446 | { | ||
447 | Evas_GL_Image *im_new; | ||
448 | |||
449 | im_new = evas_gl_common_image_new_from_copied_data | ||
450 | (im->gc, im->im->cache_entry.w, im->im->cache_entry.h, | ||
451 | im->im->image.data, | ||
452 | eng_image_alpha_get(data, image), | ||
453 | eng_image_colorspace_get(data, image)); | ||
454 | if (!im_new) return im; | ||
455 | evas_gl_common_image_free(im); | ||
456 | im = im_new; | ||
457 | } | ||
458 | else | ||
459 | evas_gl_common_image_dirty(im, 0, 0, 0, 0); | ||
460 | return evas_gl_common_image_alpha_set(im, has_alpha ? 1 : 0); | ||
461 | // im->im->cache_entry.flags.alpha = has_alpha ? 1 : 0; | ||
462 | // return image; | ||
463 | } | ||
464 | |||
465 | static void * | ||
466 | eng_image_border_set(void *data __UNUSED__, void *image, int l __UNUSED__, int r __UNUSED__, int t __UNUSED__, int b __UNUSED__) | ||
467 | { | ||
468 | // Render_Engine *re; | ||
469 | // | ||
470 | // re = (Render_Engine *)data; | ||
471 | return image; | ||
472 | } | ||
473 | |||
474 | static void | ||
475 | eng_image_border_get(void *data __UNUSED__, void *image __UNUSED__, int *l __UNUSED__, int *r __UNUSED__, int *t __UNUSED__, int *b __UNUSED__) | ||
476 | { | ||
477 | // Render_Engine *re; | ||
478 | // | ||
479 | // re = (Render_Engine *)data; | ||
480 | } | ||
481 | |||
482 | static char * | ||
483 | eng_image_comment_get(void *data __UNUSED__, void *image, char *key __UNUSED__) | ||
484 | { | ||
485 | // Render_Engine *re; | ||
486 | Evas_GL_Image *im; | ||
487 | |||
488 | // re = (Render_Engine *)data; | ||
489 | if (!image) return NULL; | ||
490 | im = image; | ||
491 | if (!im->im) return NULL; | ||
492 | return im->im->info.comment; | ||
493 | } | ||
494 | |||
495 | static char * | ||
496 | eng_image_format_get(void *data __UNUSED__, void *image) | ||
497 | { | ||
498 | // Render_Engine *re; | ||
499 | Evas_GL_Image *im; | ||
500 | |||
501 | // re = (Render_Engine *)data; | ||
502 | im = image; | ||
503 | return NULL; | ||
504 | } | ||
505 | |||
506 | static void | ||
507 | eng_image_colorspace_set(void *data, void *image, int cspace) | ||
508 | { | ||
509 | Render_Engine *re; | ||
510 | Evas_GL_Image *im; | ||
511 | |||
512 | re = (Render_Engine *)data; | ||
513 | if (!image) return; | ||
514 | im = image; | ||
515 | if (im->native.data) return; | ||
516 | /* FIXME: can move to gl_common */ | ||
517 | if (im->cs.space == cspace) return; | ||
518 | eng_window_use(re->win); | ||
519 | evas_cache_image_colorspace(&im->im->cache_entry, cspace); | ||
520 | switch (cspace) | ||
521 | { | ||
522 | case EVAS_COLORSPACE_ARGB8888: | ||
523 | if (im->cs.data) | ||
524 | { | ||
525 | if (!im->cs.no_free) free(im->cs.data); | ||
526 | im->cs.data = NULL; | ||
527 | im->cs.no_free = 0; | ||
528 | } | ||
529 | break; | ||
530 | case EVAS_COLORSPACE_YCBCR422P601_PL: | ||
531 | case EVAS_COLORSPACE_YCBCR422P709_PL: | ||
532 | if (im->tex) evas_gl_common_texture_free(im->tex); | ||
533 | im->tex = NULL; | ||
534 | if (im->cs.data) | ||
535 | { | ||
536 | if (!im->cs.no_free) free(im->cs.data); | ||
537 | } | ||
538 | if (im->im->cache_entry.h > 0) | ||
539 | im->cs.data = | ||
540 | calloc(1, im->im->cache_entry.h * sizeof(unsigned char *) * 2); | ||
541 | else | ||
542 | im->cs.data = NULL; | ||
543 | im->cs.no_free = 0; | ||
544 | break; | ||
545 | default: | ||
546 | abort(); | ||
547 | break; | ||
548 | } | ||
549 | im->cs.space = cspace; | ||
550 | } | ||
551 | |||
552 | ///////////////////////////////////////////////////////////////////////// | ||
553 | // | ||
554 | // | ||
555 | |||
556 | // FIXME: this is enabled so updates happen - but its SLOOOOOOOOOOOOOOOW | ||
557 | // (i am sure this is the reason) not to mention seemingly superfluous. but | ||
558 | // i need to enable it for it to work on fglrx at least. havent tried nvidia. | ||
559 | // | ||
560 | // why is this the case? does anyone know? has anyone tried it on other gfx | ||
561 | // drivers? | ||
562 | // | ||
563 | //#define GLX_TEX_PIXMAP_RECREATE 1 | ||
564 | #if 0 | ||
565 | static void | ||
566 | eng_image_draw_filtered(void *data, void *context, void *surface, | ||
567 | void *image, Evas_Filter_Info *filter) | ||
568 | { | ||
569 | Render_Engine *re = data; | ||
570 | |||
571 | if (!image) return; | ||
572 | eng_window_use(re->win); | ||
573 | evas_gl_common_context_target_surface_set(re->win->gl_context, surface); | ||
574 | re->win->gl_context->dc = context; | ||
575 | |||
576 | evas_gl_common_filter_draw(re->win->gl_context, image, filter); | ||
577 | } | ||
578 | |||
579 | static Filtered_Image * | ||
580 | eng_image_filtered_get(void *im, uint8_t *key, size_t keylen) | ||
581 | { | ||
582 | return evas_gl_common_image_filtered_get(im, key, keylen); | ||
583 | } | ||
584 | |||
585 | static Filtered_Image * | ||
586 | eng_image_filtered_save(void *im, void *fim, uint8_t *key, size_t keylen) | ||
587 | { | ||
588 | return evas_gl_common_image_filtered_save(im, fim, key, keylen); | ||
589 | } | ||
590 | |||
591 | static void | ||
592 | eng_image_filtered_free(void *im, Filtered_Image *fim) | ||
593 | { | ||
594 | evas_gl_common_image_filtered_free(im, fim); | ||
595 | } | ||
596 | |||
597 | #endif | ||
598 | |||
599 | // | ||
600 | // | ||
601 | ///////////////////////////////////////////////////////////////////////// | ||
602 | |||
603 | static void * | ||
604 | eng_image_load(void *data, const char *file, const char *key, int *error, Evas_Image_Load_Opts *lo) | ||
605 | { | ||
606 | Render_Engine *re; | ||
607 | |||
608 | re = (Render_Engine *)data; | ||
609 | *error = EVAS_LOAD_ERROR_NONE; | ||
610 | eng_window_use(re->win); | ||
611 | return evas_gl_common_image_load(re->win->gl_context, file, key, lo, error); | ||
612 | } | ||
613 | |||
614 | static void * | ||
615 | eng_image_new_from_data(void *data, int w, int h, DATA32 *image_data, int alpha, int cspace) | ||
616 | { | ||
617 | Render_Engine *re; | ||
618 | |||
619 | re = (Render_Engine *)data; | ||
620 | eng_window_use(re->win); | ||
621 | return evas_gl_common_image_new_from_data(re->win->gl_context, w, h, image_data, alpha, cspace); | ||
622 | } | ||
623 | |||
624 | static void * | ||
625 | eng_image_new_from_copied_data(void *data, int w, int h, DATA32 *image_data, int alpha, int cspace) | ||
626 | { | ||
627 | Render_Engine *re; | ||
628 | |||
629 | re = (Render_Engine *)data; | ||
630 | eng_window_use(re->win); | ||
631 | return evas_gl_common_image_new_from_copied_data(re->win->gl_context, w, h, image_data, alpha, cspace); | ||
632 | } | ||
633 | |||
634 | static void | ||
635 | eng_image_free(void *data, void *image) | ||
636 | { | ||
637 | Render_Engine *re; | ||
638 | |||
639 | re = (Render_Engine *)data; | ||
640 | if (!image) return; | ||
641 | eng_window_use(re->win); | ||
642 | evas_gl_common_image_free(image); | ||
643 | } | ||
644 | |||
645 | static void | ||
646 | eng_image_size_get(void *data __UNUSED__, void *image, int *w, int *h) | ||
647 | { | ||
648 | if (!image) | ||
649 | { | ||
650 | *w = 0; | ||
651 | *h = 0; | ||
652 | return; | ||
653 | } | ||
654 | if (w) *w = ((Evas_GL_Image *)image)->w; | ||
655 | if (h) *h = ((Evas_GL_Image *)image)->h; | ||
656 | } | ||
657 | |||
658 | static void * | ||
659 | eng_image_size_set(void *data, void *image, int w, int h) | ||
660 | { | ||
661 | Render_Engine *re; | ||
662 | Evas_GL_Image *im = image; | ||
663 | Evas_GL_Image *im_old; | ||
664 | |||
665 | re = (Render_Engine *)data; | ||
666 | if (!im) return NULL; | ||
667 | if (im->native.data) | ||
668 | { | ||
669 | im->w = w; | ||
670 | im->h = h; | ||
671 | return image; | ||
672 | } | ||
673 | eng_window_use(re->win); | ||
674 | if ((im->tex) && (im->tex->pt->dyn.img)) | ||
675 | { | ||
676 | evas_gl_common_texture_free(im->tex); | ||
677 | im->tex = NULL; | ||
678 | im->w = w; | ||
679 | im->h = h; | ||
680 | im->tex = evas_gl_common_texture_dynamic_new(im->gc, im); | ||
681 | return image; | ||
682 | } | ||
683 | im_old = image; | ||
684 | if ((eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422P601_PL) || | ||
685 | (eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422P709_PL)) | ||
686 | w &= ~0x1; | ||
687 | if ((im_old) && | ||
688 | ((int)im_old->im->cache_entry.w == w) && | ||
689 | ((int)im_old->im->cache_entry.h == h)) | ||
690 | return image; | ||
691 | if (im_old) | ||
692 | { | ||
693 | im = evas_gl_common_image_new(re->win->gl_context, w, h, | ||
694 | eng_image_alpha_get(data, image), | ||
695 | eng_image_colorspace_get(data, image)); | ||
696 | /* | ||
697 | evas_common_load_image_data_from_file(im_old->im); | ||
698 | if (im_old->im->image->data) | ||
699 | { | ||
700 | evas_common_blit_rectangle(im_old->im, im->im, 0, 0, w, h, 0, 0); | ||
701 | evas_common_cpu_end_opt(); | ||
702 | } | ||
703 | */ | ||
704 | evas_gl_common_image_free(im_old); | ||
705 | } | ||
706 | else | ||
707 | im = evas_gl_common_image_new(re->win->gl_context, w, h, 1, EVAS_COLORSPACE_ARGB8888); | ||
708 | return im; | ||
709 | } | ||
710 | |||
711 | static void * | ||
712 | eng_image_dirty_region(void *data, void *image, int x, int y, int w, int h) | ||
713 | { | ||
714 | Render_Engine *re; | ||
715 | Evas_GL_Image *im = image; | ||
716 | |||
717 | re = (Render_Engine *)data; | ||
718 | if (!image) return NULL; | ||
719 | if (im->native.data) return image; | ||
720 | eng_window_use(re->win); | ||
721 | evas_gl_common_image_dirty(image, x, y, w, h); | ||
722 | return image; | ||
723 | } | ||
724 | |||
725 | static void * | ||
726 | eng_image_data_get(void *data, void *image, int to_write, DATA32 **image_data, int *err) | ||
727 | { | ||
728 | Render_Engine *re; | ||
729 | Evas_GL_Image *im; | ||
730 | int error; | ||
731 | |||
732 | re = (Render_Engine *)data; | ||
733 | if (!image) | ||
734 | { | ||
735 | *image_data = NULL; | ||
736 | if (err) *err = EVAS_LOAD_ERROR_GENERIC; | ||
737 | return NULL; | ||
738 | } | ||
739 | im = image; | ||
740 | if (im->native.data) | ||
741 | { | ||
742 | *image_data = NULL; | ||
743 | if (err) *err = EVAS_LOAD_ERROR_NONE; | ||
744 | return im; | ||
745 | } | ||
746 | if ((im->tex) && (im->tex->pt) && (im->tex->pt->dyn.data)) | ||
747 | { | ||
748 | *image_data = im->tex->pt->dyn.data; | ||
749 | if (err) *err = EVAS_LOAD_ERROR_NONE; | ||
750 | return im; | ||
751 | } | ||
752 | eng_window_use(re->win); | ||
753 | error = evas_cache_image_load_data(&im->im->cache_entry); | ||
754 | switch (im->cs.space) | ||
755 | { | ||
756 | case EVAS_COLORSPACE_ARGB8888: | ||
757 | if (to_write) | ||
758 | { | ||
759 | if (im->references > 1) | ||
760 | { | ||
761 | Evas_GL_Image *im_new; | ||
762 | |||
763 | im_new = evas_gl_common_image_new_from_copied_data | ||
764 | (im->gc, im->im->cache_entry.w, im->im->cache_entry.h, | ||
765 | im->im->image.data, | ||
766 | eng_image_alpha_get(data, image), | ||
767 | eng_image_colorspace_get(data, image)); | ||
768 | if (!im_new) | ||
769 | { | ||
770 | *image_data = NULL; | ||
771 | if (err) *err = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
772 | return im; | ||
773 | } | ||
774 | evas_gl_common_image_free(im); | ||
775 | im = im_new; | ||
776 | } | ||
777 | else | ||
778 | evas_gl_common_image_dirty(im, 0, 0, 0, 0); | ||
779 | } | ||
780 | *image_data = im->im->image.data; | ||
781 | break; | ||
782 | case EVAS_COLORSPACE_YCBCR422P601_PL: | ||
783 | case EVAS_COLORSPACE_YCBCR422P709_PL: | ||
784 | *image_data = im->cs.data; | ||
785 | break; | ||
786 | default: | ||
787 | abort(); | ||
788 | break; | ||
789 | } | ||
790 | if (err) *err = error; | ||
791 | return im; | ||
792 | } | ||
793 | |||
794 | static void * | ||
795 | eng_image_data_put(void *data, void *image, DATA32 *image_data) | ||
796 | { | ||
797 | Render_Engine *re; | ||
798 | Evas_GL_Image *im, *im2; | ||
799 | |||
800 | re = (Render_Engine *)data; | ||
801 | if (!image) return NULL; | ||
802 | im = image; | ||
803 | if (im->native.data) return image; | ||
804 | eng_window_use(re->win); | ||
805 | if ((im->tex) && (im->tex->pt) && (im->tex->pt->dyn.data)) | ||
806 | { | ||
807 | if (im->tex->pt->dyn.data == image_data) | ||
808 | { | ||
809 | return image; | ||
810 | } | ||
811 | else | ||
812 | { | ||
813 | int w, h; | ||
814 | |||
815 | w = im->im->cache_entry.w; | ||
816 | h = im->im->cache_entry.h; | ||
817 | im2 = eng_image_new_from_data(data, w, h, image_data, | ||
818 | eng_image_alpha_get(data, image), | ||
819 | eng_image_colorspace_get(data, image)); | ||
820 | if (!im2) return im; | ||
821 | evas_gl_common_image_free(im); | ||
822 | im = im2; | ||
823 | evas_gl_common_image_dirty(im, 0, 0, 0, 0); | ||
824 | return im; | ||
825 | } | ||
826 | } | ||
827 | switch (im->cs.space) | ||
828 | { | ||
829 | case EVAS_COLORSPACE_ARGB8888: | ||
830 | if (image_data != im->im->image.data) | ||
831 | { | ||
832 | int w, h; | ||
833 | |||
834 | w = im->im->cache_entry.w; | ||
835 | h = im->im->cache_entry.h; | ||
836 | im2 = eng_image_new_from_data(data, w, h, image_data, | ||
837 | eng_image_alpha_get(data, image), | ||
838 | eng_image_colorspace_get(data, image)); | ||
839 | if (!im2) return im; | ||
840 | evas_gl_common_image_free(im); | ||
841 | im = im2; | ||
842 | } | ||
843 | break; | ||
844 | case EVAS_COLORSPACE_YCBCR422P601_PL: | ||
845 | case EVAS_COLORSPACE_YCBCR422P709_PL: | ||
846 | if (image_data != im->cs.data) | ||
847 | { | ||
848 | if (im->cs.data) | ||
849 | { | ||
850 | if (!im->cs.no_free) free(im->cs.data); | ||
851 | } | ||
852 | im->cs.data = image_data; | ||
853 | } | ||
854 | break; | ||
855 | default: | ||
856 | abort(); | ||
857 | break; | ||
858 | } | ||
859 | /* hmmm - but if we wrote... why bother? */ | ||
860 | evas_gl_common_image_dirty(im, 0, 0, 0, 0); | ||
861 | return im; | ||
862 | } | ||
863 | |||
864 | static void | ||
865 | eng_image_data_preload_request(void *data __UNUSED__, void *image, const void *target) | ||
866 | { | ||
867 | Evas_GL_Image *gim = image; | ||
868 | RGBA_Image *im; | ||
869 | |||
870 | if (!gim) return; | ||
871 | if (gim->native.data) return; | ||
872 | im = (RGBA_Image *)gim->im; | ||
873 | if (!im) return; | ||
874 | evas_cache_image_preload_data(&im->cache_entry, target); | ||
875 | } | ||
876 | |||
877 | static void | ||
878 | eng_image_data_preload_cancel(void *data __UNUSED__, void *image, const void *target) | ||
879 | { | ||
880 | Evas_GL_Image *gim = image; | ||
881 | RGBA_Image *im; | ||
882 | |||
883 | if (!gim) return; | ||
884 | if (gim->native.data) return; | ||
885 | im = (RGBA_Image *)gim->im; | ||
886 | if (!im) return; | ||
887 | evas_cache_image_preload_cancel(&im->cache_entry, target); | ||
888 | } | ||
889 | |||
890 | static void | ||
891 | 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) | ||
892 | { | ||
893 | Render_Engine *re; | ||
894 | |||
895 | re = (Render_Engine *)data; | ||
896 | if (!image) return; | ||
897 | eng_window_use(re->win); | ||
898 | evas_gl_common_context_target_surface_set(re->win->gl_context, surface); | ||
899 | re->win->gl_context->dc = context; | ||
900 | evas_gl_common_image_draw(re->win->gl_context, image, | ||
901 | src_x, src_y, src_w, src_h, | ||
902 | dst_x, dst_y, dst_w, dst_h, | ||
903 | smooth); | ||
904 | } | ||
905 | |||
906 | static void | ||
907 | eng_image_scale_hint_set(void *data __UNUSED__, void *image, int hint) | ||
908 | { | ||
909 | if (image) evas_gl_common_image_scale_hint_set(image, hint); | ||
910 | } | ||
911 | |||
912 | static int | ||
913 | eng_image_scale_hint_get(void *data __UNUSED__, void *image) | ||
914 | { | ||
915 | Evas_GL_Image *gim = image; | ||
916 | if (!gim) return EVAS_IMAGE_SCALE_HINT_NONE; | ||
917 | return gim->scale_hint; | ||
918 | } | ||
919 | |||
920 | static void | ||
921 | eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level) | ||
922 | { | ||
923 | Evas_GL_Image *gim = image; | ||
924 | Render_Engine *re; | ||
925 | |||
926 | re = (Render_Engine *)data; | ||
927 | if (!image) return; | ||
928 | eng_window_use(re->win); | ||
929 | evas_gl_common_context_target_surface_set(re->win->gl_context, surface); | ||
930 | re->win->gl_context->dc = context; | ||
931 | if (npoints != 4) | ||
932 | { | ||
933 | // FIXME: nash - you didnt fix this | ||
934 | abort(); | ||
935 | } | ||
936 | if ((p[0].x == p[3].x) && | ||
937 | (p[1].x == p[2].x) && | ||
938 | (p[0].y == p[1].y) && | ||
939 | (p[3].y == p[2].y) && | ||
940 | (p[0].x <= p[1].x) && | ||
941 | (p[0].y <= p[2].y) && | ||
942 | (p[0].u == 0) && | ||
943 | (p[0].v == 0) && | ||
944 | (p[1].u == (gim->w << FP)) && | ||
945 | (p[1].v == 0) && | ||
946 | (p[2].u == (gim->w << FP)) && | ||
947 | (p[2].v == (gim->h << FP)) && | ||
948 | (p[3].u == 0) && | ||
949 | (p[3].v == (gim->h << FP)) && | ||
950 | (p[0].col == 0xffffffff) && | ||
951 | (p[1].col == 0xffffffff) && | ||
952 | (p[2].col == 0xffffffff) && | ||
953 | (p[3].col == 0xffffffff)) | ||
954 | { | ||
955 | int dx, dy, dw, dh; | ||
956 | |||
957 | dx = p[0].x >> FP; | ||
958 | dy = p[0].y >> FP; | ||
959 | dw = (p[2].x >> FP) - dx; | ||
960 | dh = (p[2].y >> FP) - dy; | ||
961 | eng_image_draw(data, context, surface, image, | ||
962 | 0, 0, gim->w, gim->h, dx, dy, dw, dh, smooth); | ||
963 | } | ||
964 | else | ||
965 | { | ||
966 | evas_gl_common_image_map_draw(re->win->gl_context, image, npoints, p, | ||
967 | smooth, level); | ||
968 | } | ||
969 | } | ||
970 | |||
971 | static void * | ||
972 | eng_image_map_surface_new(void *data __UNUSED__, int w, int h, int alpha) | ||
973 | { | ||
974 | Render_Engine *re; | ||
975 | |||
976 | re = (Render_Engine *)data; | ||
977 | return evas_gl_common_image_surface_new(re->win->gl_context, w, h, alpha); | ||
978 | } | ||
979 | |||
980 | static void | ||
981 | eng_image_map_surface_free(void *data __UNUSED__, void *surface) | ||
982 | { | ||
983 | evas_gl_common_image_free(surface); | ||
984 | } | ||
985 | |||
986 | static void | ||
987 | eng_image_content_hint_set(void *data __UNUSED__, void *image, int hint) | ||
988 | { | ||
989 | if (image) evas_gl_common_image_content_hint_set(image, hint); | ||
990 | } | ||
991 | |||
992 | static int | ||
993 | eng_image_content_hint_get(void *data __UNUSED__, void *image) | ||
994 | { | ||
995 | Evas_GL_Image *gim = image; | ||
996 | if (!gim) return EVAS_IMAGE_CONTENT_HINT_NONE; | ||
997 | return gim->content_hint; | ||
998 | } | ||
999 | |||
1000 | static void | ||
1001 | eng_image_cache_flush(void *data __UNUSED__) | ||
1002 | { | ||
1003 | Render_Engine *re; | ||
1004 | int tmp_size; | ||
1005 | |||
1006 | re = (Render_Engine *)data; | ||
1007 | |||
1008 | tmp_size = evas_common_image_get_cache(); | ||
1009 | evas_common_image_set_cache(0); | ||
1010 | evas_common_rgba_image_scalecache_flush(); | ||
1011 | evas_gl_common_image_cache_flush(re->win->gl_context); | ||
1012 | evas_common_image_set_cache(tmp_size); | ||
1013 | } | ||
1014 | |||
1015 | static void | ||
1016 | eng_image_cache_set(void *data __UNUSED__, int bytes) | ||
1017 | { | ||
1018 | Render_Engine *re; | ||
1019 | |||
1020 | re = (Render_Engine *)data; | ||
1021 | evas_common_image_set_cache(bytes); | ||
1022 | evas_common_rgba_image_scalecache_size_set(bytes); | ||
1023 | evas_gl_common_image_cache_flush(re->win->gl_context); | ||
1024 | } | ||
1025 | |||
1026 | static int | ||
1027 | eng_image_cache_get(void *data __UNUSED__) | ||
1028 | { | ||
1029 | Render_Engine *re; | ||
1030 | |||
1031 | re = (Render_Engine *)data; | ||
1032 | return evas_common_image_get_cache(); | ||
1033 | } | ||
1034 | |||
1035 | |||
1036 | static void | ||
1037 | eng_image_stride_get(void *data __UNUSED__, void *image, int *stride) | ||
1038 | { | ||
1039 | Evas_GL_Image *im = image; | ||
1040 | *stride = im->w * 4; | ||
1041 | if ((im->tex) && (im->tex->pt->dyn.img)) | ||
1042 | { | ||
1043 | *stride = im->tex->pt->dyn.w * 4; | ||
1044 | // FIXME: for other image formats (yuv etc.) different stride needed | ||
1045 | } | ||
1046 | } | ||
1047 | |||
1048 | static void | ||
1049 | 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) | ||
1050 | { | ||
1051 | Render_Engine *re; | ||
1052 | |||
1053 | re = (Render_Engine *)data; | ||
1054 | eng_window_use(re->win); | ||
1055 | evas_gl_common_context_target_surface_set(re->win->gl_context, surface); | ||
1056 | re->win->gl_context->dc = context; | ||
1057 | { | ||
1058 | // FIXME: put im into context so we can free it | ||
1059 | static RGBA_Image *im = NULL; | ||
1060 | |||
1061 | if (!im) | ||
1062 | im = (RGBA_Image *)evas_cache_image_empty(evas_common_image_cache_get()); | ||
1063 | im->cache_entry.w = re->win->width; | ||
1064 | im->cache_entry.h = re->win->height; | ||
1065 | evas_common_draw_context_font_ext_set(context, | ||
1066 | re->win->gl_context, | ||
1067 | evas_gl_font_texture_new, | ||
1068 | evas_gl_font_texture_free, | ||
1069 | evas_gl_font_texture_draw); | ||
1070 | evas_common_font_draw(im, context, (RGBA_Font *) font, x, y, | ||
1071 | intl_props); | ||
1072 | evas_common_draw_context_font_ext_set(context, | ||
1073 | NULL, | ||
1074 | NULL, | ||
1075 | NULL, | ||
1076 | NULL); | ||
1077 | } | ||
1078 | } | ||
1079 | |||
1080 | |||
1081 | static Eina_Bool | ||
1082 | eng_canvas_alpha_get(void *data __UNUSED__, void *info __UNUSED__) | ||
1083 | { | ||
1084 | // FIXME: support ARGB gl targets!!! | ||
1085 | return EINA_FALSE; | ||
1086 | } | ||
1087 | |||
1088 | |||
1089 | #if 1 | ||
1090 | static void | ||
1091 | evgl_glBindFramebuffer(GLenum target, GLuint framebuffer) | ||
1092 | { | ||
1093 | // Add logic to take care when framebuffer=0 | ||
1094 | glBindFramebuffer(target, framebuffer); | ||
1095 | } | ||
1096 | |||
1097 | static void | ||
1098 | evgl_glBindRenderbuffer(GLenum target, GLuint renderbuffer) | ||
1099 | { | ||
1100 | // Add logic to take care when renderbuffer=0 | ||
1101 | glBindRenderbuffer(target, renderbuffer); | ||
1102 | } | ||
1103 | |||
1104 | static void | ||
1105 | evgl_glClearDepthf(GLclampf depth) | ||
1106 | { | ||
1107 | #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) | ||
1108 | glClearDepthf(depth); | ||
1109 | #else | ||
1110 | glClearDepth(depth); | ||
1111 | #endif | ||
1112 | } | ||
1113 | |||
1114 | static void | ||
1115 | evgl_glDepthRangef(GLclampf zNear, GLclampf zFar) | ||
1116 | { | ||
1117 | #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) | ||
1118 | glDepthRangef(zNear, zFar); | ||
1119 | #else | ||
1120 | glDepthRange(zNear, zFar); | ||
1121 | #endif | ||
1122 | } | ||
1123 | |||
1124 | static void | ||
1125 | evgl_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) | ||
1126 | { | ||
1127 | #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) | ||
1128 | glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision); | ||
1129 | #else | ||
1130 | if (range) | ||
1131 | { | ||
1132 | range[0] = -126; // floor(log2(FLT_MIN)) | ||
1133 | range[1] = 127; // floor(log2(FLT_MAX)) | ||
1134 | } | ||
1135 | if (precision) | ||
1136 | { | ||
1137 | precision[0] = 24; // floor(-log2((1.0/16777218.0))); | ||
1138 | } | ||
1139 | return; | ||
1140 | shadertype = precisiontype = 0; | ||
1141 | #endif | ||
1142 | } | ||
1143 | |||
1144 | static void | ||
1145 | evgl_glReleaseShaderCompiler(void) | ||
1146 | { | ||
1147 | #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) | ||
1148 | glReleaseShaderCompiler(); | ||
1149 | #else | ||
1150 | #endif | ||
1151 | } | ||
1152 | |||
1153 | static void | ||
1154 | evgl_glShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLsizei length) | ||
1155 | { | ||
1156 | #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) | ||
1157 | glShaderBinary(n, shaders, binaryformat, binary, length); | ||
1158 | #else | ||
1159 | // FIXME: need to dlsym/getprocaddress for this | ||
1160 | return; | ||
1161 | n = binaryformat = length = 0; | ||
1162 | shaders = binary = 0; | ||
1163 | #endif | ||
1164 | } | ||
1165 | |||
1166 | #endif | ||
1167 | |||
1168 | static void * | ||
1169 | eng_gl_api_get(void *data) | ||
1170 | { | ||
1171 | Render_Engine *re; | ||
1172 | |||
1173 | re = (Render_Engine *)data; | ||
1174 | |||
1175 | gl_funcs.version = EVAS_GL_API_VERSION; | ||
1176 | #if 1 | ||
1177 | #define ORD(f) EVAS_API_OVERRIDE(f, &gl_funcs, ) | ||
1178 | ORD(glActiveTexture); | ||
1179 | ORD(glAttachShader); | ||
1180 | ORD(glBindAttribLocation); | ||
1181 | ORD(glBindBuffer); | ||
1182 | ORD(glBindTexture); | ||
1183 | ORD(glBlendColor); | ||
1184 | ORD(glBlendEquation); | ||
1185 | ORD(glBlendEquationSeparate); | ||
1186 | ORD(glBlendFunc); | ||
1187 | ORD(glBlendFuncSeparate); | ||
1188 | ORD(glBufferData); | ||
1189 | ORD(glBufferSubData); | ||
1190 | ORD(glCheckFramebufferStatus); | ||
1191 | ORD(glClear); | ||
1192 | ORD(glClearColor); | ||
1193 | // ORD(glClearDepthf); | ||
1194 | ORD(glClearStencil); | ||
1195 | ORD(glColorMask); | ||
1196 | ORD(glCompileShader); | ||
1197 | ORD(glCompressedTexImage2D); | ||
1198 | ORD(glCompressedTexSubImage2D); | ||
1199 | ORD(glCopyTexImage2D); | ||
1200 | ORD(glCopyTexSubImage2D); | ||
1201 | ORD(glCreateProgram); | ||
1202 | ORD(glCreateShader); | ||
1203 | ORD(glCullFace); | ||
1204 | ORD(glDeleteBuffers); | ||
1205 | ORD(glDeleteFramebuffers); | ||
1206 | ORD(glDeleteProgram); | ||
1207 | ORD(glDeleteRenderbuffers); | ||
1208 | ORD(glDeleteShader); | ||
1209 | ORD(glDeleteTextures); | ||
1210 | ORD(glDepthFunc); | ||
1211 | ORD(glDepthMask); | ||
1212 | // ORD(glDepthRangef); | ||
1213 | ORD(glDetachShader); | ||
1214 | ORD(glDisable); | ||
1215 | ORD(glDisableVertexAttribArray); | ||
1216 | ORD(glDrawArrays); | ||
1217 | ORD(glDrawElements); | ||
1218 | ORD(glEnable); | ||
1219 | ORD(glEnableVertexAttribArray); | ||
1220 | ORD(glFinish); | ||
1221 | ORD(glFlush); | ||
1222 | ORD(glFramebufferRenderbuffer); | ||
1223 | ORD(glFramebufferTexture2D); | ||
1224 | ORD(glFrontFace); | ||
1225 | ORD(glGenBuffers); | ||
1226 | ORD(glGenerateMipmap); | ||
1227 | ORD(glGenFramebuffers); | ||
1228 | ORD(glGenRenderbuffers); | ||
1229 | ORD(glGenTextures); | ||
1230 | ORD(glGetActiveAttrib); | ||
1231 | ORD(glGetActiveUniform); | ||
1232 | ORD(glGetAttachedShaders); | ||
1233 | ORD(glGetAttribLocation); | ||
1234 | ORD(glGetBooleanv); | ||
1235 | ORD(glGetBufferParameteriv); | ||
1236 | ORD(glGetError); | ||
1237 | ORD(glGetFloatv); | ||
1238 | ORD(glGetFramebufferAttachmentParameteriv); | ||
1239 | ORD(glGetIntegerv); | ||
1240 | ORD(glGetProgramiv); | ||
1241 | ORD(glGetProgramInfoLog); | ||
1242 | ORD(glGetRenderbufferParameteriv); | ||
1243 | ORD(glGetShaderiv); | ||
1244 | ORD(glGetShaderInfoLog); | ||
1245 | // ORD(glGetShaderPrecisionFormat); | ||
1246 | ORD(glGetShaderSource); | ||
1247 | ORD(glGetString); | ||
1248 | ORD(glGetTexParameterfv); | ||
1249 | ORD(glGetTexParameteriv); | ||
1250 | ORD(glGetUniformfv); | ||
1251 | ORD(glGetUniformiv); | ||
1252 | ORD(glGetUniformLocation); | ||
1253 | ORD(glGetVertexAttribfv); | ||
1254 | ORD(glGetVertexAttribiv); | ||
1255 | ORD(glGetVertexAttribPointerv); | ||
1256 | ORD(glHint); | ||
1257 | ORD(glIsBuffer); | ||
1258 | ORD(glIsEnabled); | ||
1259 | ORD(glIsFramebuffer); | ||
1260 | ORD(glIsProgram); | ||
1261 | ORD(glIsRenderbuffer); | ||
1262 | ORD(glIsShader); | ||
1263 | ORD(glIsTexture); | ||
1264 | ORD(glLineWidth); | ||
1265 | ORD(glLinkProgram); | ||
1266 | ORD(glPixelStorei); | ||
1267 | ORD(glPolygonOffset); | ||
1268 | ORD(glReadPixels); | ||
1269 | // ORD(glReleaseShaderCompiler); | ||
1270 | ORD(glRenderbufferStorage); | ||
1271 | ORD(glSampleCoverage); | ||
1272 | ORD(glScissor); | ||
1273 | // ORD(glShaderBinary); | ||
1274 | ORD(glShaderSource); | ||
1275 | ORD(glStencilFunc); | ||
1276 | ORD(glStencilFuncSeparate); | ||
1277 | ORD(glStencilMask); | ||
1278 | ORD(glStencilMaskSeparate); | ||
1279 | ORD(glStencilOp); | ||
1280 | ORD(glStencilOpSeparate); | ||
1281 | ORD(glTexImage2D); | ||
1282 | ORD(glTexParameterf); | ||
1283 | ORD(glTexParameterfv); | ||
1284 | ORD(glTexParameteri); | ||
1285 | ORD(glTexParameteriv); | ||
1286 | ORD(glTexSubImage2D); | ||
1287 | ORD(glUniform1f); | ||
1288 | ORD(glUniform1fv); | ||
1289 | ORD(glUniform1i); | ||
1290 | ORD(glUniform1iv); | ||
1291 | ORD(glUniform2f); | ||
1292 | ORD(glUniform2fv); | ||
1293 | ORD(glUniform2i); | ||
1294 | ORD(glUniform2iv); | ||
1295 | ORD(glUniform3f); | ||
1296 | ORD(glUniform3fv); | ||
1297 | ORD(glUniform3i); | ||
1298 | ORD(glUniform3iv); | ||
1299 | ORD(glUniform4f); | ||
1300 | ORD(glUniform4fv); | ||
1301 | ORD(glUniform4i); | ||
1302 | ORD(glUniform4iv); | ||
1303 | ORD(glUniformMatrix2fv); | ||
1304 | ORD(glUniformMatrix3fv); | ||
1305 | ORD(glUniformMatrix4fv); | ||
1306 | ORD(glUseProgram); | ||
1307 | ORD(glValidateProgram); | ||
1308 | ORD(glVertexAttrib1f); | ||
1309 | ORD(glVertexAttrib1fv); | ||
1310 | ORD(glVertexAttrib2f); | ||
1311 | ORD(glVertexAttrib2fv); | ||
1312 | ORD(glVertexAttrib3f); | ||
1313 | ORD(glVertexAttrib3fv); | ||
1314 | ORD(glVertexAttrib4f); | ||
1315 | ORD(glVertexAttrib4fv); | ||
1316 | ORD(glVertexAttribPointer); | ||
1317 | ORD(glViewport); | ||
1318 | #undef ORD | ||
1319 | |||
1320 | // Override functions wrapped by Evas_GL | ||
1321 | #define ORD(f) EVAS_API_OVERRIDE(f, &gl_funcs, evgl_) | ||
1322 | ORD(glBindFramebuffer); | ||
1323 | ORD(glBindRenderbuffer); | ||
1324 | |||
1325 | // GLES2.0 API compat on top of desktop gl | ||
1326 | ORD(glClearDepthf); | ||
1327 | ORD(glDepthRangef); | ||
1328 | ORD(glGetShaderPrecisionFormat); | ||
1329 | ORD(glReleaseShaderCompiler); | ||
1330 | ORD(glShaderBinary); | ||
1331 | #undef ORD | ||
1332 | |||
1333 | #endif | ||
1334 | |||
1335 | return &gl_funcs; | ||
1336 | } | ||
1337 | |||
1338 | static int | ||
1339 | eng_image_load_error_get(void *data __UNUSED__, void *image) | ||
1340 | { | ||
1341 | Evas_GL_Image *im; | ||
1342 | |||
1343 | if (!image) return EVAS_LOAD_ERROR_NONE; | ||
1344 | im = image; | ||
1345 | return im->im->cache_entry.load_error; | ||
1346 | } | ||
1347 | |||
1348 | static int | ||
1349 | module_open(Evas_Module *em) | ||
1350 | { | ||
1351 | if (!em) return 0; | ||
1352 | /* get whatever engine module we inherit from */ | ||
1353 | if (!_evas_module_engine_inherit(&pfunc, "software_generic")) return 0; | ||
1354 | _evas_engine_gl_cocoa_log_dom = eina_log_domain_register("EvasGLCocoa", EVAS_DEFAULT_LOG_COLOR); | ||
1355 | if(_evas_engine_gl_cocoa_log_dom < 0) | ||
1356 | { | ||
1357 | EINA_LOG_ERR("Impossible to create a log domain for GL (Cocoa) engine."); | ||
1358 | return 0; | ||
1359 | } | ||
1360 | /* store it for later use */ | ||
1361 | func = pfunc; | ||
1362 | /* now to override methods */ | ||
1363 | #define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_) | ||
1364 | ORD(info); | ||
1365 | ORD(info_free); | ||
1366 | ORD(setup); | ||
1367 | ORD(canvas_alpha_get); | ||
1368 | ORD(output_free); | ||
1369 | ORD(output_resize); | ||
1370 | ORD(output_tile_size_set); | ||
1371 | ORD(output_redraws_rect_add); | ||
1372 | ORD(output_redraws_rect_del); | ||
1373 | ORD(output_redraws_clear); | ||
1374 | ORD(output_redraws_next_update_get); | ||
1375 | ORD(output_redraws_next_update_push); | ||
1376 | ORD(context_cutout_add); | ||
1377 | ORD(context_cutout_clear); | ||
1378 | ORD(output_flush); | ||
1379 | ORD(output_idle_flush); | ||
1380 | // ORD(output_dump); | ||
1381 | ORD(rectangle_draw); | ||
1382 | ORD(line_draw); | ||
1383 | ORD(polygon_point_add); | ||
1384 | ORD(polygon_points_clear); | ||
1385 | ORD(polygon_draw); | ||
1386 | |||
1387 | ORD(image_load); | ||
1388 | ORD(image_new_from_data); | ||
1389 | ORD(image_new_from_copied_data); | ||
1390 | ORD(image_free); | ||
1391 | ORD(image_size_get); | ||
1392 | ORD(image_size_set); | ||
1393 | ORD(image_dirty_region); | ||
1394 | ORD(image_data_get); | ||
1395 | ORD(image_data_put); | ||
1396 | ORD(image_data_preload_request); | ||
1397 | ORD(image_data_preload_cancel); | ||
1398 | ORD(image_alpha_set); | ||
1399 | ORD(image_alpha_get); | ||
1400 | ORD(image_border_set); | ||
1401 | ORD(image_border_get); | ||
1402 | ORD(image_draw); | ||
1403 | ORD(image_comment_get); | ||
1404 | ORD(image_format_get); | ||
1405 | ORD(image_colorspace_set); | ||
1406 | ORD(image_colorspace_get); | ||
1407 | ORD(image_mask_create); | ||
1408 | // ORD(image_native_set); | ||
1409 | // ORD(image_native_get); | ||
1410 | // ORD(image_draw_filtered); | ||
1411 | // ORD(image_filtered_get); | ||
1412 | // ORD(image_filtered_save); | ||
1413 | // ORD(image_filtered_free); | ||
1414 | |||
1415 | ORD(font_draw); | ||
1416 | |||
1417 | ORD(image_scale_hint_set); | ||
1418 | ORD(image_scale_hint_get); | ||
1419 | ORD(image_stride_get); | ||
1420 | |||
1421 | ORD(image_map_draw); | ||
1422 | ORD(image_map_surface_new); | ||
1423 | ORD(image_map_surface_free); | ||
1424 | |||
1425 | ORD(image_content_hint_set); | ||
1426 | ORD(image_content_hint_get); | ||
1427 | |||
1428 | ORD(image_cache_flush); | ||
1429 | ORD(image_cache_set); | ||
1430 | ORD(image_cache_get); | ||
1431 | |||
1432 | ORD(gl_api_get); | ||
1433 | |||
1434 | ORD(image_load_error_get); | ||
1435 | |||
1436 | /* now advertise out own api */ | ||
1437 | em->functions = (void *)(&func); | ||
1438 | return 1; | ||
1439 | } | ||
1440 | |||
1441 | static void | ||
1442 | module_close(Evas_Module *em) | ||
1443 | { | ||
1444 | eina_log_domain_unregister(_evas_engine_gl_cocoa_log_dom); | ||
1445 | } | ||
1446 | |||
1447 | static Evas_Module_Api evas_modapi = | ||
1448 | { | ||
1449 | EVAS_MODULE_API_VERSION, | ||
1450 | "gl_cocoa", | ||
1451 | "none", | ||
1452 | { | ||
1453 | module_open, | ||
1454 | module_close | ||
1455 | } | ||
1456 | }; | ||
1457 | |||
1458 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, gl_cocoa); | ||
1459 | |||
1460 | #ifndef EVAS_STATIC_BUILD_GL_COCOA | ||
1461 | EVAS_EINA_MODULE_DEFINE(engine, gl_cocoa); | ||
1462 | #endif | ||
diff --git a/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.h b/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.h deleted file mode 100644 index a066d3e..0000000 --- a/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.h +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | #ifndef __EVAS_ENGINE_H__ | ||
2 | #define __EVAS_ENGINE_H__ | ||
3 | |||
4 | #ifdef HAVE_CONFIG_H | ||
5 | # include <config.h> | ||
6 | #endif | ||
7 | |||
8 | #include <OpenGL/gl.h> | ||
9 | |||
10 | #include "evas_gl_common.h" | ||
11 | #include "Evas_Engine_GL_Cocoa.h" | ||
12 | |||
13 | extern int _evas_engine_gl_cocoa_log_dom; | ||
14 | |||
15 | #ifdef ERR | ||
16 | # undef ERR | ||
17 | #endif | ||
18 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
19 | |||
20 | #ifdef DBG | ||
21 | # undef DBG | ||
22 | #endif | ||
23 | #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
24 | |||
25 | #ifdef INF | ||
26 | # undef INF | ||
27 | #endif | ||
28 | #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
29 | |||
30 | #ifdef WRN | ||
31 | # undef WRN | ||
32 | #endif | ||
33 | #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
34 | |||
35 | #ifdef CRIT | ||
36 | # undef CRIT | ||
37 | #endif | ||
38 | #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
39 | |||
40 | typedef struct _Evas_GL_Cocoa_Window Evas_GL_Cocoa_Window; | ||
41 | |||
42 | struct _Evas_GL_Cocoa_Window | ||
43 | { | ||
44 | void* window; | ||
45 | void* view; | ||
46 | int width; | ||
47 | int height; | ||
48 | int depth; | ||
49 | Evas_Engine_GL_Context *gl_context; | ||
50 | struct { | ||
51 | int x1; | ||
52 | int y1; | ||
53 | int x2; | ||
54 | int y2; | ||
55 | int redraw : 1; | ||
56 | int drew : 1; | ||
57 | } draw; | ||
58 | }; | ||
59 | |||
60 | Evas_GL_Cocoa_Window *eng_window_new(void *window, | ||
61 | int width, | ||
62 | int height); | ||
63 | void eng_window_free(Evas_GL_Cocoa_Window *gw); | ||
64 | void eng_window_use(Evas_GL_Cocoa_Window *gw); | ||
65 | void eng_window_swap_buffers(Evas_GL_Cocoa_Window *gw); | ||
66 | void eng_window_vsync_set(int on); | ||
67 | void ng_window_resize(Evas_GL_Cocoa_Window *gw, int width, int height); | ||
68 | |||
69 | #endif /* __EVAS_ENGINE_H__ */ | ||
diff --git a/libraries/evas/src/modules/engines/gl_cocoa/evas_gl_cocoa_main.m b/libraries/evas/src/modules/engines/gl_cocoa/evas_gl_cocoa_main.m deleted file mode 100644 index aa6b895..0000000 --- a/libraries/evas/src/modules/engines/gl_cocoa/evas_gl_cocoa_main.m +++ /dev/null | |||
@@ -1,134 +0,0 @@ | |||
1 | |||
2 | #include <Cocoa/Cocoa.h> | ||
3 | |||
4 | #include "evas_engine.h" | ||
5 | |||
6 | static Evas_GL_Cocoa_Window *_evas_gl_cocoa_window = NULL; | ||
7 | |||
8 | @interface EvasGLView : NSOpenGLView | ||
9 | { | ||
10 | } | ||
11 | |||
12 | + (NSOpenGLPixelFormat*) basicPixelFormat; | ||
13 | - (id) initWithFrame: (NSRect) frameRect; | ||
14 | |||
15 | @end | ||
16 | |||
17 | |||
18 | @implementation EvasGLView | ||
19 | |||
20 | - (id) init | ||
21 | { | ||
22 | self = [super init]; | ||
23 | return self; | ||
24 | } | ||
25 | |||
26 | + (NSOpenGLPixelFormat*) basicPixelFormat | ||
27 | { | ||
28 | NSOpenGLPixelFormatAttribute attributes [] = { | ||
29 | NSOpenGLPFAWindow, | ||
30 | NSOpenGLPFAAccelerated, | ||
31 | NSOpenGLPFADoubleBuffer, | ||
32 | /*NSOpenGLPFAColorSize, 24, | ||
33 | NSOpenGLPFAAlphaSize, 8, | ||
34 | NSOpenGLPFADepthSize, 24,*/ | ||
35 | 0 | ||
36 | }; | ||
37 | return [[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes] autorelease]; | ||
38 | } | ||
39 | |||
40 | // --------------------------------- | ||
41 | |||
42 | -(id) initWithFrame: (NSRect) frameRect | ||
43 | { | ||
44 | NSOpenGLPixelFormat * pf = [EvasGLView basicPixelFormat]; | ||
45 | self = [super initWithFrame: frameRect pixelFormat: pf]; | ||
46 | return self; | ||
47 | } | ||
48 | |||
49 | @end | ||
50 | |||
51 | |||
52 | Evas_GL_Cocoa_Window * | ||
53 | eng_window_new(void *window, | ||
54 | int w, | ||
55 | int h) | ||
56 | { | ||
57 | Evas_GL_Cocoa_Window *gw; | ||
58 | int context_attrs[3]; | ||
59 | int config_attrs[20]; | ||
60 | int major_version, minor_version; | ||
61 | int num_config; | ||
62 | |||
63 | gw = calloc(1, sizeof(Evas_GL_Cocoa_Window)); | ||
64 | if (!gw) return NULL; | ||
65 | |||
66 | _evas_gl_cocoa_window = gw; | ||
67 | gw->window = window; | ||
68 | gw->view = [[EvasGLView alloc] initWithFrame:NSMakeRect(0,0,w,h)]; | ||
69 | NSOpenGLContext *ctx = [(NSOpenGLView*)gw->view openGLContext]; | ||
70 | [ctx makeCurrentContext]; | ||
71 | gw->gl_context = evas_gl_common_context_new(); | ||
72 | |||
73 | if (!gw->gl_context) | ||
74 | { | ||
75 | free(gw); | ||
76 | return NULL; | ||
77 | } | ||
78 | evas_gl_common_context_use(gw->gl_context); | ||
79 | evas_gl_common_context_resize(gw->gl_context, w, h, 0); | ||
80 | |||
81 | return gw; | ||
82 | } | ||
83 | |||
84 | void | ||
85 | eng_window_free(Evas_GL_Cocoa_Window *gw) | ||
86 | { | ||
87 | if (gw == _evas_gl_cocoa_window) _evas_gl_cocoa_window = NULL; | ||
88 | evas_gl_common_context_free(gw->gl_context); | ||
89 | free(gw); | ||
90 | } | ||
91 | |||
92 | void | ||
93 | eng_window_use(Evas_GL_Cocoa_Window *gw) | ||
94 | { | ||
95 | if (_evas_gl_cocoa_window != gw) | ||
96 | { | ||
97 | [[(NSOpenGLView*)gw->view openGLContext] makeCurrentContext]; | ||
98 | if (_evas_gl_cocoa_window) | ||
99 | evas_gl_common_context_flush(_evas_gl_cocoa_window->gl_context); | ||
100 | _evas_gl_cocoa_window = gw; | ||
101 | |||
102 | } | ||
103 | evas_gl_common_context_use(gw->gl_context); | ||
104 | } | ||
105 | |||
106 | void | ||
107 | eng_window_swap_buffers(Evas_GL_Cocoa_Window *gw) | ||
108 | { | ||
109 | [[(NSOpenGLView*)gw->view openGLContext] flushBuffer]; | ||
110 | } | ||
111 | |||
112 | void | ||
113 | eng_window_vsync_set(int on) | ||
114 | { | ||
115 | |||
116 | } | ||
117 | |||
118 | |||
119 | void | ||
120 | eng_window_resize(Evas_GL_Cocoa_Window *gw, int width, int height) | ||
121 | { | ||
122 | NSRect view_frame; | ||
123 | |||
124 | INF("Resize %d %d\n", width, height); | ||
125 | |||
126 | view_frame = [(EvasGLView*)gw->view frame]; | ||
127 | printf("view_frame : %3.3f %3.3f\n", view_frame.size.height, view_frame.size.width); | ||
128 | view_frame.size.height = height; | ||
129 | view_frame.size.width = width; | ||
130 | printf("view_frame : %3.3f %3.3f\n", view_frame.size.height, view_frame.size.width); | ||
131 | [(EvasGLView*)gw->view setFrame:view_frame]; | ||
132 | [[(NSOpenGLView*)gw->view openGLContext] flushBuffer]; | ||
133 | } | ||
134 | |||