Change-Id: I1ba642f4008ad5d9efc71c622824004ed6f6d38d
return em;
}
+E_API E_Map *
+e_map_new_with_direct_render(Eina_Bool direct_render)
+{
+ E_Map *em = E_NEW(E_Map, 1);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(em, NULL);
+
+ em->map = evas_map_new(4);
+ if (!em->map)
+ {
+ ELOGF("MAP", "evas_map_new failed.", NULL);
+ free(em);
+ return NULL;
+ }
+
+ em->count = 4;
+ em->internal = EINA_FALSE;
+
+ /* for optimize memory usage */
+ if (direct_render)
+ evas_map_direct_render_set(em->map, EINA_TRUE);
+
+ return em;
+}
+
E_API E_Map *
e_map_dup(E_Map *em)
{
/* current Evas_Map is support only four points.
* So, we're provide e_map_new without count parameter. */
E_API E_Map *e_map_new(void);
+E_API E_Map *e_map_new_with_direct_render(Eina_Bool direct_render);
E_API E_Map *e_map_dup(E_Map *em);
E_API Eina_Bool e_map_free(E_Map *em);
E_API Eina_Bool e_map_point_coord_get(E_Map *em, int idx, int *x, int *y, int *z);