* Clutter now depends on the system copy of JSON-GLib, and will fall
back to the internal copy only if JSON-GLib is not installed.
+Cogl API changes for Clutter 1.2
+--------------------------------
+
+* cogl_viewport is now deprecated in favour of cogl_set_viewport which
+ accepts a viewport offset.
+
Release Notes for Clutter 1.0
-------------------------------
clutter_texture_set_fbo_projection (self);
/* Reset the viewport to the size of the FBO */
- cogl_viewport (priv->image_width, priv->image_height);
+ cogl_set_viewport (0, 0, priv->image_width, priv->image_height);
/* Reapply the source's parent transformations */
if ((source_parent = clutter_actor_get_parent (priv->fbo_source)))
}
void
-_cogl_set_viewport (int x,
- int y,
- int width,
- int height)
+cogl_set_viewport (int x,
+ int y,
+ int width,
+ int height)
{
CoglHandle draw_buffer;
cogl_viewport (guint width,
guint height)
{
- _cogl_set_viewport (0, 0, width, height);
+ cogl_set_viewport (0, 0, width, height);
}
void
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
- cogl_viewport (width, height);
+ cogl_set_viewport (0, 0, width, height);
/* For Ortho projection.
* _cogl_matrix_stack_ortho (projection_stack, 0, width, 0, height, -1, 1);
float z_near,
float z_far);
+#ifndef COGL_DISABLE_DEPRECATED
+
/**
* cogl_viewport:
* @width: Width of the viewport
* Since: 0.8.2
*/
void cogl_viewport (guint width,
- guint height);
+ guint height) G_GNUC_DEPRECATED;
+
+#endif
+
+/**
+ * cogl_set_viewport:
+ * @x: viewport X offset
+ * @x: viewport Y offset
+ * @width: Width of the viewport
+ * @height: Height of the viewport
+ *
+ * Replace the current viewport with the given values.
+ *
+ * Since: 1.2
+ */
+void cogl_set_viewport (int x,
+ int y,
+ int width,
+ int height);
/**
* cogl_push_matrix: