rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=13f2582aa9678a610d08c93990e0e4b7455d8707

commit 13f2582aa9678a610d08c93990e0e4b7455d8707
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Mon Jun 6 18:29:42 2016 +0300

    editor: some of map API like map on, perspective, smooth, alpha, etc
---
 src/bin/editor/editor.h        |  7 +++++++
 src/bin/editor/editor_states.c | 12 ++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/src/bin/editor/editor.h b/src/bin/editor/editor.h
index dde3008..ec5901a 100644
--- a/src/bin/editor/editor.h
+++ b/src/bin/editor/editor.h
@@ -161,6 +161,13 @@ typedef enum {
    ATTRIBUTE_PART_POINTER_MODE,
    ATTRIBUTE_PART_CURSOR_MODE,
    ATTRIBUTE_STATE_FILL_TYPE,
+   ATTRIBUTE_STATE_MAP_ON,
+   ATTRIBUTE_STATE_MAP_PERSPECTIVE_ON,
+   ATTRIBUTE_STATE_MAP_PERSPECTIVE,
+   ATTRIBUTE_STATE_MAP_LIGHT,
+   ATTRIBUTE_STATE_MAP_SMOOTH,
+   ATTRIBUTE_STATE_MAP_ALPHA,
+   ATTRIBUTE_STATE_MAP_BACKFACE_CULL,
    ATTRIBUTE_PROGRAM_TRANSITION_TYPE,
    ATTRIBUTE_PROGRAM_TRANSITION_FROM_CURRENT,
    ATTRIBUTE_PROGRAM_ACTION,
diff --git a/src/bin/editor/editor_states.c b/src/bin/editor/editor_states.c
index bb8a5cb..91cb74f 100644
--- a/src/bin/editor/editor_states.c
+++ b/src/bin/editor/editor_states.c
@@ -173,6 +173,18 @@ EDITOR_STATE_STRING_WITH_RESET(rel2_to_x, 
ATTRIBUTE_STATE_REL2_TO_X, true, rel2_
 EDITOR_STATE_STRING_WITH_RESET(rel2_to_y, ATTRIBUTE_STATE_REL2_TO_Y, true, 
rel2_relative_y)
 EDITOR_STATE_STRING(proxy_source, ATTRIBUTE_STATE_PROXY_SOURCE, true)
 
+EDITOR_STATE_BOOL(map_on, ATTRIBUTE_STATE_MAP_ON)
+EDITOR_STATE_BOOL(map_perspective_on, ATTRIBUTE_STATE_MAP_PERSPECTIVE_ON)
+EDITOR_STATE_STRING(map_perspective, ATTRIBUTE_STATE_MAP_PERSPECTIVE, true)
+EDITOR_STATE_STRING(map_light, ATTRIBUTE_STATE_MAP_LIGHT, true)
+EDITOR_STATE_BOOL(map_smooth, ATTRIBUTE_STATE_MAP_SMOOTH)
+EDITOR_STATE_BOOL(map_alpha, ATTRIBUTE_STATE_MAP_ALPHA)
+EDITOR_STATE_BOOL(map_backface_cull, ATTRIBUTE_STATE_MAP_BACKFACE_CULL)
+//map_perspective_focal
+//map_perspective_zplane
+//map_rotation_center (part)
+//map_rotation (3 values)
+
 TODO("Fix edje_edit API")
 //EDITOR_STATE_STRING(box_layout, ATTRIBUTE_STATE_BOX_LAYOUT)
 //EDITOR_STATE_STRING(box_alt_layout, ATTRIBUTE_STATE_BOX_ALT_LAYOUT)

-- 


Reply via email to