annotate Plugins/Visualization/paranormal/pn/pndisplacement.h @ 1523:aa1e05d66f6d trunk

[svn] - it might help if i actually ran bison on the script parser eh :)
author nenolod
date Mon, 07 Aug 2006 21:47:55 -0700
parents 0c5fdcf3f947
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1507
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
1 /* Paranormal - A highly customizable audio visualization library
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
2 * Copyright (C) 2001 Jamie Gennis <jgennis@mindspring.com>
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
3 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
4 * This library is free software; you can redistribute it and/or
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
5 * modify it under the terms of the GNU Library General Public
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
6 * License as published by the Free Software Foundation; either
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
7 * version 2 of the License, or (at your option) any later version.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
8 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
9 * This library is distributed in the hope that it will be useful,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
12 * Library General Public License for more details.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
13 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU Library General Public
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
15 * License along with this library; if not, write to the Free
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
17 */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
18
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
19 #ifndef __PN_DISPLACEMENT_H__
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
20 #define __PN_DISPLACEMENT_H__
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
21
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
22 #include "pnactuator.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
23 #include "pnscript.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
24 #include "pnsymboltable.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
25
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
26
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
27 G_BEGIN_DECLS
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
28
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
29
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
30 enum
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
31 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
32 PN_DISPLACEMENT_OPT_INIT_SCRIPT = PN_ACTUATOR_OPT_LAST,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
33 PN_DISPLACEMENT_OPT_FRAME_SCRIPT,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
34 PN_DISPLACEMENT_OPT_LAST
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
35 };
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
36
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
37 #define PN_TYPE_DISPLACEMENT (pn_displacement_get_type ())
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
38 #define PN_DISPLACEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PN_TYPE_DISPLACEMENT, PnDisplacement))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
39 #define PN_DISPLACEMENT_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), PN_TYPE_DISPLACEMENT, PnDisplacementClass))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
40 #define PN_IS_DISPLACEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PN_TYPE_DISPLACEMENT))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
41 #define PN_IS_DISPLACEMENT_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), PN_TYPE_DISPLACEMENT))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
42 #define PN_DISPLACEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PN_TYPE_DISPLACEMENT, PnDisplacementClass))
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
43
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
44 typedef struct _PnDisplacement PnDisplacement;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
45 typedef struct _PnDisplacementClass PnDisplacementClass;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
46
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
47 struct _PnDisplacement
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
48 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
49 PnActuator parent;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
50
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
51 /* The script objects */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
52 PnScript *init_script;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
53 PnScript *frame_script;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
54 PnSymbolTable *symbol_table;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
55
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
56 /* The in-script variables */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
57 PnVariable *x_var;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
58 PnVariable *y_var;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
59 PnVariable *volume_var;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
60 };
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
61
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
62 struct _PnDisplacementClass
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
63 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
64 PnActuatorClass parent_class;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
65 };
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
66
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
67 /* Creators */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
68 GType pn_displacement_get_type (void);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
69 PnDisplacement *pn_displacement_new (void);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
70
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
71 #endif /* __PN_DISPLACEMENT_H__ */