This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.h
60 lines (56 loc) · 1.46 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#pragma once
#include "entities/vector.h"
#include "ui/components/canvas.h"
extern int lunghezza;
extern int raggio;
extern float maxCarica;
extern int coloreBase;
extern float massa;
extern int raggioCarica;
extern int scala;
extern float coloreSfondo[4];
extern float coloreSorgente[4];
extern float coloreCarica[4];
extern unsigned int SCREEN_WIDTH;
extern unsigned int SCREEN_HEIGHT;
extern float salto;
extern float costanteColoumb;
extern int maxStep;
extern float densitaLinee;
extern float coloreBaseRGB[4];
extern float coloreGrigliaSecondario[4];
extern float coloreGrigliaPrimario[4];
extern float coloreLinee[4];
extern bool abilitaLog;
extern bool sorgentiColoreSegno;
extern bool darkMode;
extern float coloreGrCariche[4];
extern bool drawGraficoCariche;
extern int densita;
extern bool drawCampoVettoriale;
extern bool drawSorgenti;
extern bool drawGrid;
extern bool drawLineeDiCampo;
extern float caricaDiProva;
extern vector2 caricaNuova;
extern vector2 sorgenteNuova;
extern float caricaSorgenteNuova;
const float red[4] = {1.0,0,0,1};
const float green[4] = {0,1.0,0,1};
const float blue[4] = {0,0,1,1};
const float yellow[4] = {1,1,0,1};
const float cyan[4] = {0,1,1,1};
class Settings
{
public:
static unsigned int gridSize;
static bool drawGrid;
static int SCREEN_HEIGHT;
static int SCREEN_WIDTH;
static float backgroundColor[4];
static float gridColor[4];
static float SCALE_STEP;
static Canvas canvas;
private:
Settings();
};