-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutil.h
42 lines (39 loc) · 877 Bytes
/
util.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
#pragma once
#include <complex>
#include <SDL2/SDL.h>
struct threadSettings {
int threadTotal;
int threadID;
SDL_Surface* surface;
int iter;
int precision;
long double offsetX;
long double offsetY;
long double scale;
std::complex<long double> juliaInit;
Uint32* pixelBuffer;
bool mandelbrotSelect;
};
// We can't use std::complex in this ;-;
// Wait can we?
// No
struct clSettings {
int iter;
double offsetX;
double offsetY;
double scale;
double jiR;
double jiI;
bool mandelbrotSelect;
};
//yes this was all copied from stackoverflow
struct rgb {
double r; // a fraction between 0 and 1
double g; // a fraction between 0 and 1
double b; // a fraction between 0 and 1
};
struct hsv {
double h; // angle in degrees
double s; // a fraction between 0 and 1
double v; // a fraction between 0 and 1
};