[seed] Update shader example



commit 35d756a2bb843c37f6c0f9b943ecbfb089ecd0f3
Author: Robert Carr <racarr mireia (none)>
Date:   Sun Apr 12 17:27:10 2009 -0400

    Update shader example
---
 examples/clutter-shader/main.js |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/examples/clutter-shader/main.js b/examples/clutter-shader/main.js
index 396e0a4..c8be609 100755
--- a/examples/clutter-shader/main.js
+++ b/examples/clutter-shader/main.js
@@ -1,10 +1,11 @@
 #!/usr/bin/env seed
-Seed.import_namespace("Clutter", "0.8");
-Seed.import_namespace("Gtk");
-Seed.import_namespace("GtkSource");
-Seed.import_namespace("GtkClutter");
-Seed.import_namespace("Gio");
-Seed.include("ShaderView.js");
+imports.gi.versions.Clutter = 0.8;
+Clutter = imports.gi.Clutter;
+Gtk = imports.gi.Gtk;
+GtkSource = imports.gi.GtkSource;
+GtkClutter = imports.gi.GtkClutter;
+Gio = imports.gi.Gio;
+ShaderView = imports.ShaderView;
 
 Gtk.init(null, null);
 GtkClutter.init(null, null);
@@ -15,7 +16,7 @@ var stage = gtkstage.get_stage();
 var texture = new Clutter.Texture({filename:"bob.jpg"});
 var reflection = new Clutter.CloneTexture({parent_texture: texture});
 shader = new Clutter.Shader();
-var shaderfield = new ShaderView("fragment_source", texture,reflection);
+var shaderfield = new ShaderView.ShaderView("fragment_source", texture,reflection);
 var vbox = new Gtk.VBox();
 var notebook = new Gtk.Notebook();
 var c = new Clutter.Color();



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