2007-01-17 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Wed, 17 Jan 2007 13:51:14 +0000 (13:51 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Wed, 17 Jan 2007 13:51:14 +0000 (13:51 +0000)
* clutter/clutter-feature.h:
* clutter/clutter-feature.c: Move the GL headers from the
header file to the body.

* clutter/clutter-fixed.h:
* clutter/clutter-fixed.c: Fix apidoc.

* clutter/clutter-color.h:
* clutter/clutter-color.c: Ditto.

ChangeLog
clutter/clutter-color.c
clutter/clutter-color.h
clutter/clutter-feature.c
clutter/clutter-feature.h
clutter/clutter-fixed.c
clutter/clutter-fixed.h
doc/reference/clutter-sections.txt
doc/reference/tmpl/clutter-fixed.sgml

index 2a2dde4..36f8dc6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2007-01-17  Emmanuele Bassi  <ebassi@openedhand.com>
+
+       * clutter/clutter-feature.h:
+       * clutter/clutter-feature.c: Move the GL headers from the
+       header file to the body.
+
+       * clutter/clutter-fixed.h:
+       * clutter/clutter-fixed.c: Fix apidoc.
+
+       * clutter/clutter-color.h:
+       * clutter/clutter-color.c: Ditto.
+
 2007-01-17  Tomas Frydrych  <tf@openedhand.com>
        
        * clutter/clutter-fixed.h:
index 1445421..c29a542 100644 (file)
@@ -311,19 +311,23 @@ clutter_color_from_hls (ClutterColor *dest,
 void
 clutter_color_shade (const ClutterColor *src,
                     ClutterColor       *dest,
-                    gdouble            shade)
+                    gdouble             shade)
 {
     clutter_color_shadex (src, dest, CLUTTER_FLOAT_TO_FIXED (shade));
 }
 
 /**
- * clutter_color_shade:
+ * clutter_color_shadex:
  * @src: a #ClutterColor
  * @dest: return location for the shaded color
  * @shade: #ClutterFixed the shade factor to apply
  * 
+ * Fixed point version of clutter_color_shade().
+ *
  * Shades @src by the factor of @shade and saves the modified
  * color into @dest.
+ *
+ * Since: 0.2
  */
 void
 clutter_color_shadex (const ClutterColor *src,
@@ -471,7 +475,7 @@ clutter_color_to_string (const ClutterColor *color)
  *
  * Compares two #ClutterColor<!-- -->s and checks if they are the same.
  *
- * Return: %TRUE if the two colors are the same.
+ * Return value: %TRUE if the two colors are the same.
  *
  * Since: 0.2
  */
index 9fdc848..c85ee8a 100644 (file)
@@ -67,7 +67,7 @@ void          clutter_color_darken     (const ClutterColor *src,
 void          clutter_color_shade      (const ClutterColor *src,
                                         ClutterColor       *dest,
                                         gdouble             shade);
-void          clutter_color_shadex      (const ClutterColor *src,
+void          clutter_color_shadex     (const ClutterColor *src,
                                         ClutterColor       *dest,
                                         ClutterFixed        shade);
 
index dae3ce7..95005bd 100644 (file)
@@ -40,6 +40,9 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <GL/glx.h>
+#include <GL/gl.h>
+
 #include <dlfcn.h>
 
 #include "clutter-feature.h"
index 2ef4d37..784cac6 100644 (file)
@@ -34,8 +34,6 @@
 #define _HAVE_CLUTTER_FEATURE_H
 
 #include <glib.h>
-#include <GL/glx.h>
-#include <GL/gl.h>
 
 G_BEGIN_DECLS
 
index af2aa48..217fb21 100644 (file)
@@ -455,8 +455,8 @@ clutter_sqrtx (ClutterFixed x)
  *
  * Since: 0.2
  */
-int
-clutter_sqrti (int x)
+gint
+clutter_sqrti (gint x)
 {
     int t = 0;
     int sh = 0;
index 9539f0e..c511052 100644 (file)
@@ -85,7 +85,7 @@ typedef gint32 ClutterAngle;    /* angle such that 1024 == 2*PI */
 #define CFX_DIV CLUTTER_FIXED_DIV
 
 /* Fixed point math routines */
-ClutterFixed clutter_sinx (ClutterFixed anx);
+ClutterFixed clutter_sinx (ClutterFixed angle);
 ClutterFixed clutter_sini (ClutterAngle angle);
 
 /* convenience macros for the cos functions */
@@ -93,7 +93,7 @@ ClutterFixed clutter_sini (ClutterAngle angle);
 #define clutter_cosi(x) clutter_sini((x) - 256)
 
 ClutterFixed clutter_sqrtx (ClutterFixed x);
-int clutter_sqrti (int x);
+gint         clutter_sqrti (gint         x);
 
 G_END_DECLS
 
index fc4e3ef..b2f56b3 100644 (file)
@@ -467,10 +467,10 @@ CFX_180
 CFX_240
 CFX_360
 CFX_60
+CFX_255
 CFX_DIV
 CFX_INT
 CFX_MUL
-clutter_color_shadex
 CLUTTER_FIXED_TO_FLOAT
 CLUTTER_FIXED_TO_DOUBLE
 CLUTTER_FLOAT_TO_FIXED
@@ -481,10 +481,12 @@ CLUTTER_FIXED_FLOOR
 CLUTTER_FIXED_CEIL
 CLUTTER_FIXED_MUL
 CLUTTER_FIXED_DIV
-clutter_fixed_cos
-clutter_fixed_sin
-clutter_angle_cos
-clutter_angle_sin
+clutter_cosi
+clutter_cosx
+clutter_sini
+clutter_sinx
+clutter_sqrti
+clutter_sqrtx
 </SECTION>
 
 <SECTION>
index 36e2630..01ff19b 100644 (file)
@@ -131,35 +131,32 @@ floating-to-fixed conversion.
 
 
 
-<!-- ##### MACRO CFX_DIV ##### -->
+<!-- ##### MACRO CFX_255 ##### -->
 <para>
 
 </para>
 
 
 
-<!-- ##### MACRO CFX_INT ##### -->
+<!-- ##### MACRO CFX_DIV ##### -->
 <para>
 
 </para>
 
 
 
-<!-- ##### MACRO CFX_MUL ##### -->
+<!-- ##### MACRO CFX_INT ##### -->
 <para>
 
 </para>
 
 
 
-<!-- ##### FUNCTION clutter_color_shadex ##### -->
+<!-- ##### MACRO CFX_MUL ##### -->
 <para>
 
 </para>
 
-@src: 
-@dest: 
-@shade: 
 
 
 <!-- ##### MACRO CLUTTER_FIXED_TO_FLOAT ##### -->
@@ -244,7 +241,15 @@ floating-to-fixed conversion.
 @y: 
 
 
-<!-- ##### MACRO clutter_fixed_cos ##### -->
+<!-- ##### MACRO clutter_cosi ##### -->
+<para>
+
+</para>
+
+@x: 
+
+
+<!-- ##### MACRO clutter_cosx ##### -->
 <para>
 
 </para>
@@ -252,7 +257,16 @@ floating-to-fixed conversion.
 @x: 
 
 
-<!-- ##### FUNCTION clutter_fixed_sin ##### -->
+<!-- ##### FUNCTION clutter_sini ##### -->
+<para>
+
+</para>
+
+@angle: 
+@Returns: 
+
+
+<!-- ##### FUNCTION clutter_sinx ##### -->
 <para>
 
 </para>
@@ -261,20 +275,21 @@ floating-to-fixed conversion.
 @Returns: 
 
 
-<!-- ##### MACRO clutter_angle_cos ##### -->
+<!-- ##### FUNCTION clutter_sqrti ##### -->
 <para>
 
 </para>
 
 @x: 
+@Returns: 
 
 
-<!-- ##### FUNCTION clutter_angle_sin ##### -->
+<!-- ##### FUNCTION clutter_sqrtx ##### -->
 <para>
 
 </para>
 
-@angle
+@x
 @Returns: