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