-
Notifications
You must be signed in to change notification settings - Fork 0
/
thornbird.h
50 lines (43 loc) · 986 Bytes
/
thornbird.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
#include "art.hpp"
#include "imgui.h"
#include <vector>
#include "settings.hpp"
typedef struct {
int maxx;
int maxy; /* max of the screen */
double a;
double b;
double c;
double d;
double e;
double i;
double j; /* thornbird parameters */
struct {
double f1 = 500;
double f2 = 200;
} liss;
struct {
double theta;
double dtheta;
double phi;
double dphi;
} tumble;
int inc;
int count;
} thornbirdstruct;
class Thornbird : public Art {
public:
Thornbird()
: Art("thornbird --- continuously varying Thornbird set") {
}
private:
virtual bool render_gui() override;
virtual void resize(int _w, int _h) override;
virtual bool render(uint32_t *p) override;
virtual void init_thornbird();
void draw_thornbird_1();
thornbirdstruct thornbird = {};
int cycles = 1024*64;
int count = 1024;
int kcount = 32;
};