[clutter-tutorial] Remove calls to cogl_push_matrix() and cogl_pop_matrix().
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [clutter-tutorial] Remove calls to cogl_push_matrix() and cogl_pop_matrix().
- Date: Tue, 5 Jan 2010 14:13:03 +0000 (UTC)
commit f37141e99a14965e1448e2e2a70323b9ee7b1eb3
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Jan 5 15:12:55 2010 +0100
Remove calls to cogl_push_matrix() and cogl_pop_matrix().
* examples/custom_actor/triangle_actor.c (do_triangle_paint):
* examples/custom_container/examplebox.c (example_box_paint):
Remove calls to cogl_push_matrix() and cogl_pop_matrix() that are
apparently now unnecessary.
ChangeLog | 9 +++++++++
examples/custom_actor/triangle_actor.c | 4 ----
examples/custom_container/examplebox.c | 4 ----
3 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 556e825..78c0e6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-01-05 Murray Cumming <murrayc murrayc com>
+
+ Remove calls to cogl_push_matrix() and cogl_pop_matrix().
+
+ * examples/custom_actor/triangle_actor.c (do_triangle_paint):
+ * examples/custom_container/examplebox.c (example_box_paint):
+ Remove calls to cogl_push_matrix() and cogl_pop_matrix() that are
+ apparently now unnecessary.
+
2009-10-19 Murray Cumming <murrayc murrayc com>
Use floating point numbers when needed for clutter_actor_animate*().
diff --git a/examples/custom_actor/triangle_actor.c b/examples/custom_actor/triangle_actor.c
index 2414935..adf3631 100644
--- a/examples/custom_actor/triangle_actor.c
+++ b/examples/custom_actor/triangle_actor.c
@@ -46,8 +46,6 @@ do_triangle_paint (ClutterActor *self, const CoglColor *color)
triangle = CLUTTER_TRIANGLE(self);
priv = triangle->priv;
- cogl_push_matrix();
-
clutter_actor_get_geometry (self, &geom);
cogl_set_source_color (color);
@@ -67,8 +65,6 @@ do_triangle_paint (ClutterActor *self, const CoglColor *color)
cogl_path_polygon (coords, 3);
cogl_path_fill ();
-
- cogl_pop_matrix();
}
static void
diff --git a/examples/custom_container/examplebox.c b/examples/custom_container/examplebox.c
index 9ae2a13..83b470c 100644
--- a/examples/custom_container/examplebox.c
+++ b/examples/custom_container/examplebox.c
@@ -153,8 +153,6 @@ example_box_paint (ClutterActor *actor)
ExampleBox *box = EXAMPLE_BOX (actor);
GList *l;
- cogl_push_matrix ();
-
for (l = box->children; l; l = l->next)
{
ClutterActor *child = l->data;
@@ -162,8 +160,6 @@ example_box_paint (ClutterActor *actor)
if (CLUTTER_ACTOR_IS_MAPPED (child))
clutter_actor_paint (child);
}
-
- cogl_pop_matrix ();
}
/* An implementation for the ClutterActor::pick() vfunc,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]