Re: cluttermm: no effects?



On Tue, Sep 22, 2009 at 2:32 PM, Aarto Matti <aarto matti gmail com> wrote:
Hello,

Can some one give an example of using effects with latest Cluttermm? I receive "error: ‘Clutter::EffectTemplate’ has not been declared" but it's there http://www.gtkmm.org/docs/cluttermm-0.9/docs/reference/html/classClutter_1_1EffectTemplate.html

--
Aarto

I found out that since 0.9.4 effects are replaced with Animation, but I cant get it how to use it anyway.

In Clutter it would be:

clutter_actor_animate (actor, CLUTTER_EASE_SINE_OUT, 500,
          "x", 100,
          "y", 100,
          NULL);

In Cluttermm animate is defined as:
Glib::RefPtr< Animation > animate (gulong mode, unsigned int duration, const std::map< std::string, Glib::ValueBase > &properties)

To be hones I have to idea how to fill const std::map< std::string, Glib::ValueBase > &properties. Please some one help.

--
Aarto



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]