Dear Samuel: You said you are now porting clutter toys to clutter 1.0, have you ever successfully port one of the toys named odo?
I am now porting it to clutter 1.0, but I meet a "Floating Point Exception" error, and I found this error is caused by the function call "clutter_actor_show_all(stage)", because when I use "clutter_actor_show(stage)", that is, not showing the actor named odo whose type is ClutterTextureOdo, there is no error reported. Can you help me? Thanks in advance. On Thu, Aug 13, 2009 at 5:26 PM, Samuel Degrande <[email protected]>wrote: > On 13/08/2009 11:17, Jianchun Zhou wrote: > >> Hello, guys: >> >> In version 1.0 I found some functions and maros were gone, like: >> >> clutter_sini >> clutter_cosi >> CFX_MUL >> >> Any idea where they are? >> >> Thanks a million! >> >> -- >> Best Regards >> > > As far as I know, the Fixed Point API was removed, and clutter now use > floating point values internally. > > So, once again AFAIK, you juste have to replace, for example : > > "clutter_sini(v*512)" by "sin(v*M_PI)" and so on... > "CFX_MUL(a, b)" by "a * b" > > you can also remove any float <-> fixed point conversions. > > This is at least what I did on the clutter toys to adapt them > to 1.0 API. > > I let clutter core developers to correct me if I'm wrong... > > -- > Samuel Degrande LIFL - UMR8022 CNRS - INRIA Futurs - Bat M3 > Phone: (33)3.28.77.85.30 USTL - Universite de Lille 1 > (33)3.62.53.15.70 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE > [CA certs: http://igc.services.cnrs.fr/CNRS-Standard/recherche.html ] > -- Best Regards
