+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:
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,
*
* 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
*/
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);
#include <fcntl.h>
#include <errno.h>
+#include <GL/glx.h>
+#include <GL/gl.h>
+
#include <dlfcn.h>
#include "clutter-feature.h"
#define _HAVE_CLUTTER_FEATURE_H
#include <glib.h>
-#include <GL/glx.h>
-#include <GL/gl.h>
G_BEGIN_DECLS
*
* Since: 0.2
*/
-int
-clutter_sqrti (int x)
+gint
+clutter_sqrti (gint x)
{
int t = 0;
int sh = 0;
#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 */
#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
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
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>
-<!-- ##### 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 ##### -->
@y:
-<!-- ##### MACRO clutter_fixed_cos ##### -->
+<!-- ##### MACRO clutter_cosi ##### -->
+<para>
+
+</para>
+
+@x:
+
+
+<!-- ##### MACRO clutter_cosx ##### -->
<para>
</para>
@x:
-<!-- ##### FUNCTION clutter_fixed_sin ##### -->
+<!-- ##### FUNCTION clutter_sini ##### -->
+<para>
+
+</para>
+
+@angle:
+@Returns:
+
+
+<!-- ##### FUNCTION clutter_sinx ##### -->
<para>
</para>
@Returns:
-<!-- ##### MACRO clutter_angle_cos ##### -->
+<!-- ##### FUNCTION clutter_sqrti ##### -->
<para>
</para>
@x:
+@Returns:
-<!-- ##### FUNCTION clutter_angle_sin ##### -->
+<!-- ##### FUNCTION clutter_sqrtx ##### -->
<para>
</para>
-@angle:
+@x:
@Returns: