1 #ifndef CUSTOM_SHAPE_TYPES_H
2 #define CUSTOM_SHAPE_TYPES_H
4 #include "splaytree_types.h"
5 #include "expr_types.h"
7 typedef struct CUSTOM_SHAPE_T {
13 /* Parameter tree associated with this custom shape */
14 splaytree_t * param_tree;
17 /* Engine variables */
27 double x; /* x position for per point equations */
28 double y; /* y position for per point equations */
32 double r; /* red color value */
33 double g; /* green color value */
34 double b; /* blue color value */
35 double a; /* alpha color value */
37 double r2; /* red color value */
38 double g2; /* green color value */
39 double b2; /* blue color value */
40 double a2; /* alpha color value */
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 */
47 /* stupid t variables */
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;
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;
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 */