]> git.sesse.net Git - vlc/blob - modules/visualization/galaktos/custom_shape_types.h
Removes trailing spaces. Removes tabs.
[vlc] / modules / visualization / galaktos / custom_shape_types.h
1 #ifndef CUSTOM_SHAPE_TYPES_H
2 #define CUSTOM_SHAPE_TYPES_H
3 #include "common.h"
4 #include "splaytree_types.h"
5 #include "expr_types.h"
6
7 typedef struct CUSTOM_SHAPE_T {
8
9   /* Numerical id */
10   int id;
11   int per_frame_count;
12
13   /* Parameter tree associated with this custom shape */
14   splaytree_t * param_tree;
15
16
17   /* Engine variables */
18   int sides;
19   int thickOutline;
20   int enabled;
21   int additive;
22   int textured;
23
24   double tex_zoom;
25   double tex_ang;
26  
27   double x; /* x position for per point equations */
28   double y; /* y position for per point equations */
29   double rad;
30   double ang;
31
32   double r; /* red color value */
33   double g; /* green color value */
34   double b; /* blue color value */
35   double a; /* alpha color value */
36  
37   double r2; /* red color value */
38   double g2; /* green color value */
39   double b2; /* blue color value */
40   double a2; /* alpha color value */
41
42   double border_r; /* red color value */
43   double border_g; /* green color value */
44   double border_b; /* blue color value */
45   double border_a; /* alpha color value */
46
47   /* stupid t variables */
48   double t1;
49   double t2;
50   double t3;
51   double t4;
52   double t5;
53   double t6;
54   double t7;
55   double t8;
56
57   /* Data structure to hold per frame  / per frame init equations */
58   splaytree_t * init_cond_tree;
59   splaytree_t * per_frame_eqn_tree;
60   splaytree_t * per_frame_init_eqn_tree;
61
62   /* Denotes the index of the last character for each string buffer */
63   int per_frame_eqn_string_index;
64   int per_frame_init_eqn_string_index;
65
66   /* String buffers for per frame / per frame init equations */
67   char per_frame_eqn_string_buffer[STRING_BUFFER_SIZE];
68   char per_frame_init_eqn_string_buffer[STRING_BUFFER_SIZE];
69   /* Per point equation array */
70  
71  
72 } custom_shape_t;
73
74
75 #endif