Debian Codegraph @

plugins/actor/pseudotoad_flower/main.h

raw
1 /* Libvisual-plugins - Standard plugins for libvisual
2 *
3 * Copyright (C) 2004, 2005, 2006 Antti Silvast <[email protected]>
4 *
5 * Authors: Antti Silvast <[email protected]>
6 * Dennis Smit <[email protected]>
7 *
8 * $Id: main.h,v 1.3 2006/01/22 13:25:26 synap Exp $
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24
25 #ifndef _FLOWER_MAIN_H
26 #define _FLOWER_MAIN_H
27
28 #include <libvisual/libvisual.h>
29
30 typedef float Vect[3];
31
32 typedef struct _FlowerInternal FlowerInternal;
33
34 struct _FlowerInternal {
35 float tension;
36 float continuity;
37 float bias;
38 float tension_new;
39 float continuity_new;
40 float bias_new;
41
42 float rotx;
43 float roty;
44
45 float spd;
46
47 float posz;
48 float posz_new;
49
50 float audio_strength;
51
52 int width;
53 int height;
54
55 Vect kukka[7];
56
57 Vect kukka_morph[7];
58
59 float audio_bars[256];
60
61 VisTimer timer;
62 };
63
64 /* Prototypes */
65 int init_flower (FlowerInternal *flower);
66 void render_flower_effect (FlowerInternal *flower);
67
68 #endif /* _FLOWER_MAIN_H */