summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/win32
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-16 15:50:01 +0900
committerCedric Bail <cedric.bail@free.fr>2013-03-16 15:50:01 +0900
commita4593c1cdfb7c3f463e5b192d788f5b7a7fc6f50 (patch)
tree85bc050c0dde76ab6b89ee6e2a3430f126b6e57a /src/modules/ecore_evas/engines/win32
parent338412434cb86c847f8bbd6399bdfa311dda1fd8 (diff)
ecore_evas: killing Glew and Direct3d, because someone already killed Kenny.
Diffstat (limited to 'src/modules/ecore_evas/engines/win32')
-rw-r--r--src/modules/ecore_evas/engines/win32/ecore_evas_win32.c177
1 files changed, 0 insertions, 177 deletions
diff --git a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
index 48b0602fd6..af4647e9e6 100644
--- a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
+++ b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
@@ -25,12 +25,6 @@
25#ifdef BUILD_ECORE_EVAS_SOFTWARE_DDRAW 25#ifdef BUILD_ECORE_EVAS_SOFTWARE_DDRAW
26# include <Evas_Engine_Software_DDraw.h> 26# include <Evas_Engine_Software_DDraw.h>
27#endif 27#endif
28#ifdef BUILD_ECORE_EVAS_DIRECT3D
29# include <Evas_Engine_Direct3D.h>
30#endif
31#ifdef BUILD_ECORE_EVAS_OPENGL_GLEW
32# include <Evas_Engine_GL_Glew.h>
33#endif
34 28
35#ifdef BUILD_ECORE_EVAS_WIN32 29#ifdef BUILD_ECORE_EVAS_WIN32
36 30
@@ -958,24 +952,6 @@ _ecore_evas_win32_fullscreen_set(Ecore_Evas *ee, int on)
958 } 952 }
959 } 953 }
960#endif /* BUILD_ECORE_EVAS_SOFTWARE_DDRAW */ 954#endif /* BUILD_ECORE_EVAS_SOFTWARE_DDRAW */
961
962#ifdef BUILD_ECORE_EVAS_DIRECT3D
963 if (strcmp(ee->driver, "direct3d") == 0)
964 {
965 Evas_Engine_Info_Direct3D *einfo;
966
967 einfo = (Evas_Engine_Info_Direct3D *)evas_engine_info_get(ecore_evas_get(ee));
968 if (einfo)
969 {
970 einfo->info.fullscreen = !!on;
971 einfo->info.layered = window->shape.layered;
972 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
973 {
974 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
975 }
976 }
977 }
978#endif /* BUILD_ECORE_EVAS_DIRECT3D */
979} 955}
980static void 956static void
981_ecore_evas_win32_alpha_set(Ecore_Evas *ee, int alpha) 957_ecore_evas_win32_alpha_set(Ecore_Evas *ee, int alpha)
@@ -1247,85 +1223,6 @@ _ecore_evas_engine_software_ddraw_init(Ecore_Evas *ee)
1247} 1223}
1248#endif /* BUILD_ECORE_EVAS_SOFTWARE_DDRAW */ 1224#endif /* BUILD_ECORE_EVAS_SOFTWARE_DDRAW */
1249 1225
1250#ifdef BUILD_ECORE_EVAS_DIRECT3D
1251static int
1252_ecore_evas_engine_direct3d_init(Ecore_Evas *ee)
1253{
1254 Evas_Engine_Info_Direct3D *einfo;
1255 const char *driver;
1256 int rmethod;
1257
1258 driver = "direct3d";
1259
1260 rmethod = evas_render_method_lookup(driver);
1261 if (!rmethod)
1262 return 0;
1263
1264 ee->driver = driver;
1265 evas_output_method_set(ee->evas, rmethod);
1266
1267 einfo = (Evas_Engine_Info_Direct3D *)evas_engine_info_get(ee->evas);
1268 if (einfo)
1269 {
1270 /* FIXME: REDRAW_DEBUG missing for now */
1271 einfo->info.window = ((struct _Ecore_Win32_Window *)ee->prop.window)->window;
1272 einfo->info.depth = ecore_win32_screen_depth_get();
1273 einfo->info.rotation = 0;
1274 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
1275 {
1276 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
1277 return 0;
1278 }
1279 }
1280 else
1281 {
1282 ERR("evas_engine_info_set() init engine '%s' failed.", ee->driver);
1283 return 0;
1284 }
1285
1286 return 1;
1287}
1288#endif /* BUILD_ECORE_EVAS_DIRECT3D */
1289
1290#ifdef BUILD_ECORE_EVAS_OPENGL_GLEW
1291static int
1292_ecore_evas_engine_opengl_glew_init(Ecore_Evas *ee)
1293{
1294 Evas_Engine_Info_GL_Glew *einfo;
1295 const char *driver;
1296 int rmethod;
1297
1298 driver = "gl_glew";
1299
1300 rmethod = evas_render_method_lookup(driver);
1301 if (!rmethod)
1302 return 0;
1303
1304 ee->driver = driver;
1305 evas_output_method_set(ee->evas, rmethod);
1306
1307 einfo = (Evas_Engine_Info_GL_Glew *)evas_engine_info_get(ee->evas);
1308 if (einfo)
1309 {
1310 /* FIXME: REDRAW_DEBUG missing for now */
1311 einfo->info.window = ((struct _Ecore_Win32_Window *)ee->prop.window)->window;
1312 einfo->info.depth = ecore_win32_screen_depth_get();
1313 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
1314 {
1315 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
1316 return 0;
1317 }
1318 }
1319 else
1320 {
1321 ERR("evas_engine_info_set() init engine '%s' failed.", ee->driver);
1322 return 0;
1323 }
1324
1325 return 1;
1326}
1327#endif /* BUILD_ECORE_EVAS_OPENGL_GLEW */
1328
1329static Ecore_Evas * 1226static Ecore_Evas *
1330_ecore_evas_win32_new_internal(int (*_ecore_evas_engine_backend_init)(Ecore_Evas *ee), 1227_ecore_evas_win32_new_internal(int (*_ecore_evas_engine_backend_init)(Ecore_Evas *ee),
1331 Ecore_Win32_Window *parent, 1228 Ecore_Win32_Window *parent,
@@ -1475,80 +1372,6 @@ ecore_evas_software_ddraw_new(Ecore_Win32_Window *parent EINA_UNUSED,
1475 1372
1476#endif /* ! BUILD_ECORE_EVAS_SOFTWARE_DDRAW */ 1373#endif /* ! BUILD_ECORE_EVAS_SOFTWARE_DDRAW */
1477 1374
1478
1479EAPI Ecore_Evas *
1480ecore_evas_software_16_ddraw_new(Ecore_Win32_Window *parent EINA_UNUSED,
1481 int x EINA_UNUSED,
1482 int y EINA_UNUSED,
1483 int width EINA_UNUSED,
1484 int height EINA_UNUSED)
1485{
1486 return NULL;
1487}
1488
1489#ifdef BUILD_ECORE_EVAS_DIRECT3D
1490
1491EAPI Ecore_Evas *
1492ecore_evas_direct3d_new(Ecore_Win32_Window *parent,
1493 int x,
1494 int y,
1495 int width,
1496 int height)
1497{
1498 return _ecore_evas_win32_new_internal(_ecore_evas_engine_direct3d_init,
1499 parent,
1500 x,
1501 y,
1502 width,
1503 height);
1504}
1505
1506#else
1507
1508EAPI Ecore_Evas *
1509ecore_evas_direct3d_new(Ecore_Win32_Window *parent EINA_UNUSED,
1510 int x EINA_UNUSED,
1511 int y EINA_UNUSED,
1512 int width EINA_UNUSED,
1513 int height EINA_UNUSED)
1514{
1515 return NULL;
1516}
1517
1518#endif /* ! BUILD_ECORE_EVAS_DIRECT3D */
1519
1520
1521#ifdef BUILD_ECORE_EVAS_OPENGL_GLEW
1522
1523EAPI Ecore_Evas *
1524ecore_evas_gl_glew_new(Ecore_Win32_Window *parent,
1525 int x,
1526 int y,
1527 int width,
1528 int height)
1529{
1530 return _ecore_evas_win32_new_internal(_ecore_evas_engine_opengl_glew_init,
1531 parent,
1532 x,
1533 y,
1534 width,
1535 height);
1536}
1537
1538#else
1539
1540EAPI Ecore_Evas *
1541ecore_evas_gl_glew_new(Ecore_Win32_Window *parent EINA_UNUSED,
1542 int x EINA_UNUSED,
1543 int y EINA_UNUSED,
1544 int width EINA_UNUSED,
1545 int height EINA_UNUSED)
1546{
1547 return NULL;
1548}
1549
1550#endif /* BUILD_ECORE_EVAS_OPENGL_GLEW */
1551
1552static Ecore_Win32_Window * 1375static Ecore_Win32_Window *
1553_ecore_evas_win32_window_get(const Ecore_Evas *ee) 1376_ecore_evas_win32_window_get(const Ecore_Evas *ee)
1554{ 1377{