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
96
97
98
99
100
101
102
103
104
105
106
107
|
#pragma once
#include "ofMain.h"
#include "ofxFensterManager.h"
#include "ofxGui.h"
#include "viewport.h"
class previewWindow;
class guiWindow;
//load palettes and interpolate them with phase
//some audio drawing
//some actual drawing
//transitions
class testApp : public ofxFensterListener {
public:
void setup();
void update();
void draw();
void keyPressed(int key, ofxFenster* win);
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void windowResized(int w, int h);
void gotMessage(ofMessage msg);
void mousePressedEvent(ofMouseEventArgs &args);
void keyPressedEvent(ofKeyEventArgs &args);
void windowEvent(ofResizeEventArgs &args);
void dragEvent(ofDragInfo dragInfo);
void dragEvent(ofDragInfo dragInfo,ofxFenster* win);
void toggleFPS();
bool showFPS;
bool fullscreenoutput;
previewWindow *prevWin;
guiWindow *guiWin;
ofxFenster* win;
ofxPanel gui;
ofxButton create_1;
ofxButton create_2;
ofxButton create_4;
ofxButton create_8;
ofxToggle dotrans;
ofxIntSlider bS;
ofxParameter<int> brightSlider;
ofxToggle fillgrey;
ofxFloatSlider gF;
ofxParameter<float> greyFreq;
void create1port(bool & pressed);
void create2port(bool & pressed);
void create4port(bool & pressed);
void create8port(bool & pressed);
void createports(int num);
vector<viewport> viewports;
vpcontrol control;
int windowsize;
vector<ofColor> palette;
void loadfilepalette(string &palette);
};
class previewWindow: public ofxFensterListener{
public:
~previewWindow();
testApp *parent;
void setup();
void setParent(testApp *p);
void draw();
void dragEvent(ofDragInfo dragInfo,ofxFenster* win);
};
class guiWindow: public ofxFensterListener{
public:
~guiWindow();
testApp *parent;
void setup();
void setParent(testApp *p);
void draw();
void dragEvent(ofDragInfo dragInfo,ofxFenster* win);
};
|