-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructures.h
95 lines (74 loc) · 1.2 KB
/
structures.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#ifndef STRUCTURES_H
#define STRUCTURES_H
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
typedef char BOOL;
#define YES 1
#define NO 0
typedef struct {
unsigned char r, g, b;
} color_t;
typedef struct {
double start;
double end;
double max;
double min;
double step;
BOOL cust_bounds;
int width;
int height;
char *caption;
BOOL no_axes;
double x_tick;
double y_tick;
BOOL autotick;
BOOL aspect;
color_t axes_col;
color_t back_col;
color_t hair_col;
BOOL default_title;
BOOL debug;
BOOL console;
} window_info_t;
typedef struct {
double offset;
double x_axis;
double y_axis;
double x_scale;
double y_scale;
} plot_info_t;
typedef struct {
char *frmt;
double *vals;
color_t plot_col;
color_t shade_col;
BOOL plot_on_top;
BOOL discreet;
double bound_left;
double bound_right;
BOOL bounded;
BOOL show_nan;
BOOL show_hair;
BOOL show_coords;
BOOL use_js;
BOOL show_tan;
BOOL shade;
BOOL cust_var;
BOOL free_frmt;
int function_id;
} function_t;
typedef struct {
char *txt;
int fontsize;
color_t text_col;
int x, y;
int label_id;
} label_t;
typedef struct {
plot_info_t info;
window_info_t *winfo;
SDL_Surface *screen;
TTF_Font *font;
int x;
} bundled_info_t;
#endif