aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_main.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-04-26 15:11:51 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-05-11 17:54:00 +0900
commit0a224da86fe1602a2045fac55cb6457c71d81b88 (patch)
tree46d5c3bab9a14f9849a3a323c5b349b288a8b930 /src/lib/evas/canvas/evas_main.c
parentevas map: Replace EO APIs for populate with reset (diff)
downloadefl-0a224da86fe1602a2045fac55cb6457c71d81b88.tar.gz
evas map: Introduce new API for maps (Efl.Gfx.Map)
This implements an entirely new API model for Evas Map by relying on high-level transformations on the object rather than an external Evas_Map structure that needs to be constantly updated manually. The implementation relies on Evas_Map. To rotate an object all you need to do now is efl_gfx_map_rotate(obj, 45.0, NULL, 0.5, 0.5); Or with a C++ syntax: obj.rotate(45.0, NULL, 0.5, 0.5); Or even simply (with default arguments): obj.rotate(45.0); The map transformation functions are: - rotate - rotate_3d - rotate_quat - zoom - translate (new!) - perspective_3d - lightning_3d @feature
Diffstat (limited to 'src/lib/evas/canvas/evas_main.c')
-rw-r--r--src/lib/evas/canvas/evas_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 6af60da3ca..91757c5b2d 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -88,6 +88,8 @@ evas_init(void)
if (!evas_thread_init())
goto shutdown_filter;
+ _efl_gfx_map_init();
+
eina_log_timing(_evas_log_dom_global,
EINA_LOG_STATE_STOP,
EINA_LOG_STATE_INIT);
@@ -141,6 +143,8 @@ evas_shutdown(void)
evas_cserve2_shutdown();
#endif
+ _efl_gfx_map_shutdown();
+
evas_font_path_global_clear();
eina_cow_del(evas_object_proxy_cow);
eina_cow_del(evas_object_map_cow);