-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.h
36 lines (30 loc) · 829 Bytes
/
settings.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
#ifndef __SETTINGS_H__
#define __SETTINGS_H__
#define MAX_FILE_NAME 1024
#include "color.h"
#include "generator.h"
typedef struct Settings Settings;
struct Settings{
unsigned int help_option;
unsigned int gui_option;
// the size of each face
unsigned int face_size;
// base color for each face
Color face_color;
// color of the outlines
Color outline_color;
// light level in each direction
unsigned char light[3];
// should we draw numbers on the faces?
unsigned char numbered_faces;
// should we draw outlines?
unsigned char outlines;
// the generator to use
Generator *generator;
// filename of output file
char in_filename[MAX_FILE_NAME];
char out_filename[MAX_FILE_NAME];
};
Settings *settings_create();
void settings_free(Settings *settings);
#endif