[gegl] hello-world: use gegl:over directly instead of gegl:layer



commit 0783f724305041a92ae71d447adb94ef2040aea4
Author: �yvind Kolås <pippin gimp org>
Date:   Tue Apr 26 01:33:11 2011 +0100

    hello-world: use gegl:over directly instead of gegl:layer
    
    gegl:layer seems to expect an input loadable layer to work properly
    right now, reverting back to simpler over op to make example display
    coordinates like it should.

 examples/hello-world.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/examples/hello-world.c b/examples/hello-world.c
index 411f37a..32f8da1 100644
--- a/examples/hello-world.c
+++ b/examples/hello-world.c
@@ -15,13 +15,13 @@ main (gint    argc,
 
 /*
 This is the graph we're going to construct:
- 
+
 .-----------.
 | display   |
 `-----------'
    |
 .-------.
-| layer |
+| over  |
 `-------'
    |   \
    |    \
@@ -38,10 +38,8 @@ This is the graph we're going to construct:
 
     /*< The image nodes representing operations we want to perform */
     GeglNode *display    = gegl_node_create_child (gegl, "gegl:display");
-    GeglNode *layer      = gegl_node_new_child (gegl,
-                                 "operation", "gegl:layer",
-                                 "x", 2.0,
-                                 "y", 4.0,
+    GeglNode *over       = gegl_node_new_child (gegl,
+                                 "operation", "gegl:over",
                                  NULL);
     GeglNode *text       = gegl_node_new_child (gegl,
                                  "operation", "gegl:text",
@@ -54,9 +52,9 @@ This is the graph we're going to construct:
                                 "height", 384,
                                 NULL);
 
-    gegl_node_link_many (mandelbrot, layer, display, NULL);
-    gegl_node_connect_to (text, "output",  layer, "aux");
-   
+    gegl_node_link_many (mandelbrot, over, display, NULL);
+    gegl_node_connect_to (text, "output",  over, "aux");
+
     /* request that the save node is processed, all dependencies will
      * be processed as well
      */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]