On Tue, 25 Oct 2011 05:49:41 +0000 (GMT) Jaehwan Kim <jae.hwan....@samsung.com> said:
idea -> good. but why double the # of tween modes? why not use a bitmask like typedef enum _Edje_Tween_Mode { EDJE_TWEEN_MODE_NONE = 0, EDJE_TWEEN_MODE_LINEAR = 1, EDJE_TWEEN_MODE_SINUSOIDAL = 2, EDJE_TWEEN_MODE_ACCELERATE = 3, EDJE_TWEEN_MODE_DECELERATE = 4, EDJE_TWEEN_MODE_ACCELERATE_FACTOR = 5, EDJE_TWEEN_MODE_DECELERATE_FACTOR = 6, EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR = 7, EDJE_TWEEN_MODE_DIVISOR_INTERP = 8, EDJE_TWEEN_MODE_BOUNCE = 9, EDJE_TWEEN_MODE_SPRING = 10, EDJE_TWEEN_MODE_LAST = 11, EDJE_TWEEN_MODE_MASK = 0xff, EDJE_TWEEN_MODE_OPT_FROM_CURRENT = (1 << 31) } Edje_Tween_Mode; then do: switch (mode & EDJE_TWEEN_MODE_MASK) ... so u mask out only the lower 8 bits used for mode value. upper 24 can be used for all sorts of bitmask options. then: if ((rp->object) && (pr->tween.mode & EDJE_TWEEN_MODE_OPT_FROM_CURRENT) only - just check for bit being set... in edje_cc_handlers just also set the from current but when param 3 is CURRENT... :) simpler eh? :) > > Dear all > > I made the option which edje transitioEdje_Tween_Moden moves from current > position. Currently, when the part in edc move by transition, it moves from > theone of the states to another of the states even if it is ainimating. > I captured the movie in order to show this operation. > Please show this link. > > http://www.youtube.com/watch?v=p4cqpH5_yyk > > We need it to move from current position, because the animation is not > natural and smooth. So I made the "CURRENT" option. > If I use it, the object move from current and the animation is smooth. > Please show this link. (after patching) > > http://www.youtube.com/watch?v=gC6WT2qTD6g > > It is same in case of color. > > I attached the test.diff too. Just use it for test. > > I think this option is useful for edc transition. > I made "CURRENT" option. But the "movement from current position" is > seem to be more normal than "state1->state2". > So I ask, > How about "movement from current position" is used for default > animation, instead of "CURRENT" option? > > Please check patch file and advise to me. > > Thanks. > -- > Jaehwan Kim. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel