2008-05-05 Øyvind Kolås <pippin@o-hand.com>
+ * clutter/cogl/gl/cogl-primitives.c:
+ * clutter/cogl/gles/cogl-primitives.c:
+ * clutter/cogl/common/cogl-primitives.c: moved declaration of
+ gegl_rectangle and gegl_rectanglex here to satisfy linking
+ requirements when building the fruity backend.
+
+2008-05-05 Øyvind Kolås <pippin@o-hand.com>
+
* clutter/cogl/cogl.h.in: api review touch ups.
* clutter/cogl/common/cogl-primitives.c: api review touch ups.
* clutter/cogl/gl/cogl-primitives.c: (cogl_path_fill),
void _cogl_path_clear_nodes ();
void _cogl_path_add_node (ClutterFixed x,
ClutterFixed y);
+void _cogl_path_fill_nodes ();
+void _cogl_path_stroke_nodes ();
+void _cogl_rectangle (gint x,
+ gint y,
+ guint width,
+ guint height);
+void _cogl_rectanglex (ClutterFixed x,
+ ClutterFixed y,
+ ClutterFixed width,
+ ClutterFixed height);
+void
+cogl_rectangle (gint x,
+ gint y,
+ guint width,
+ guint height)
+{
+ _cogl_rectangle (x, y, width, height);
+}
+
+void
+cogl_rectanglex (ClutterFixed x,
+ ClutterFixed y,
+ ClutterFixed width,
+ ClutterFixed height)
+{
+ _cogl_rectanglex (x, y, width, height);
+}
+
+
+void
+cogl_path_fill (void)
+{
+ _COGL_GET_CONTEXT (ctx, NO_RETVAL);
+
+ if (ctx->path_nodes_size == 0)
+ return;
+
+ _cogl_path_fill_nodes();
+}
+
+void
+cogl_path_stroke (void)
+{
+ _COGL_GET_CONTEXT (ctx, NO_RETVAL);
+
+ if (ctx->path_nodes_size == 0)
+ return;
+
+ _cogl_path_stroke_nodes();
+}
void
cogl_path_move_to (ClutterFixed x,
#define _COGL_MAX_BEZ_RECURSE_DEPTH 16
void
-cogl_rectangle (gint x,
- gint y,
- guint width,
- guint height)
+_cogl_rectangle (gint x,
+ gint y,
+ guint width,
+ guint height)
{
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
void
-cogl_rectanglex (ClutterFixed x,
- ClutterFixed y,
- ClutterFixed width,
- ClutterFixed height)
+_cogl_rectanglex (ClutterFixed x,
+ ClutterFixed y,
+ ClutterFixed width,
+ ClutterFixed height)
{
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
GE( glDrawArrays (GL_LINE_STRIP, 0, ctx->path_nodes_size) );
}
-static void
+void
_cogl_path_fill_nodes ()
{
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
GE( glDisable (GL_STENCIL_TEST) );
}
-
-void
-cogl_path_fill (void)
-{
- _COGL_GET_CONTEXT (ctx, NO_RETVAL);
-
- if (ctx->path_nodes_size == 0)
- return;
-
- _cogl_path_fill_nodes();
-
-}
-
-void
-cogl_path_stroke (void)
-{
- _COGL_GET_CONTEXT (ctx, NO_RETVAL);
-
- if (ctx->path_nodes_size == 0)
- return;
-
- _cogl_path_stroke_nodes();
-}
#define _COGL_MAX_BEZ_RECURSE_DEPTH 16
void
-cogl_rectangle (gint x,
- gint y,
- guint width,
- guint height)
+_cogl_rectangle (gint x,
+ gint y,
+ guint width,
+ guint height)
{
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
void
-cogl_rectanglex (ClutterFixed x,
- ClutterFixed y,
- ClutterFixed width,
- ClutterFixed height)
+_cogl_rectanglex (ClutterFixed x,
+ ClutterFixed y,
+ ClutterFixed width,
+ ClutterFixed height)
{
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
}
}
-static void
+void
_cogl_path_stroke_nodes ()
{
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
return GPOINTER_TO_INT(a)-GPOINTER_TO_INT(b);
}
-static void
+void
_cogl_path_fill_nodes ()
{
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
#endif
}
-void
-cogl_path_fill (void)
-{
- _COGL_GET_CONTEXT (ctx, NO_RETVAL);
-
- if (ctx->path_nodes_size == 0)
- return;
-
- _cogl_path_fill_nodes();
-
-}
-
-void
-cogl_path_stroke (void)
-{
- _COGL_GET_CONTEXT (ctx, NO_RETVAL);
-
- if (ctx->path_nodes_size == 0)
- return;
-
- _cogl_path_stroke_nodes();
-}