aboutsummaryrefslogtreecommitdiff
path: root/Plugins/argument-passing.cpp
diff options
context:
space:
mode:
authorJuha Vehviläinen <jusu@users.sourceforge.net>2002-09-18 16:32:27 +0000
committerJuha Vehviläinen <jusu@users.sourceforge.net>2002-09-18 16:32:27 +0000
commit3bd43c9d18e565e193e555f9de0ce916f8faf807 (patch)
tree81b3938b9863edf96efa6e0b1adf33081da5f440 /Plugins/argument-passing.cpp
parentabe3e28bb8c11236f42046e1c1fd6f809b00a823 (diff)
*** empty log message ***
svn path=/trunk/Framestein/; revision=132
Diffstat (limited to 'Plugins/argument-passing.cpp')
-rw-r--r--Plugins/argument-passing.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Plugins/argument-passing.cpp b/Plugins/argument-passing.cpp
new file mode 100644
index 0000000..71ec33c
--- /dev/null
+++ b/Plugins/argument-passing.cpp
@@ -0,0 +1,18 @@
+//
+// example of passing arguments to plugin using the arguments-class (defined in pixels.h)
+//
+
+#include "pixels.h"
+
+void perform_effect(_frame f, _args a)
+{
+ arguments ar(a.s);
+
+ //
+ // ar.count() return the number of arguments
+ // ar[i] return i'th argument
+ //
+
+ for(int i=0; i<ar.count(); i++)
+ printf("argument %d: %s\n", i, ar[i]);
+}