seed r449 - trunk/examples/clutter-shader
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r449 - trunk/examples/clutter-shader
- Date: Sun, 14 Dec 2008 06:53:05 +0000 (UTC)
Author: racarr
Date: Sun Dec 14 06:53:05 2008
New Revision: 449
URL: http://svn.gnome.org/viewvc/seed?rev=449&view=rev
Log:
Update clutter-shader example.
Modified:
trunk/examples/clutter-shader/ShaderView.js
Modified: trunk/examples/clutter-shader/ShaderView.js
==============================================================================
--- trunk/examples/clutter-shader/ShaderView.js (original)
+++ trunk/examples/clutter-shader/ShaderView.js Sun Dec 14 06:53:05 2008
@@ -28,18 +28,18 @@
this.actor = actor;
this.reflection = reflection;
- this.make_shader = function()
+ this.make_shader = function(button, that)
{
shader.enabled = false;
- if (this.source_type == "fragment_source")
+ if (that.source_type == "fragment_source")
shader.fragment_source = source_buf.text;
else
shader.vertex_source = source_buf.text;
shader.compile();
shader.enabled = true;
- this.actor.set_shader(shader);
- this.reflection.set_shader(shader);
+ that.actor.set_shader(shader);
+ that.reflection.set_shader(shader);
}
- compile.signal.clicked.connect(this.make_shader, this);
-}
\ No newline at end of file
+ compile.signal.clicked.connect(this.make_shader, null, this);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]