-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathofApp.h
97 lines (66 loc) · 1.9 KB
/
ofApp.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
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
#pragma once
#include "ofMain.h"
#include "ofxGui.h"
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void stripePattern();
void matrixPattern();
ofxPanel gui;
ofxIntSlider countX;
ofxFloatSlider stepX;
ofxFloatSlider twistX;
ofxIntSlider countY;
ofxFloatSlider stepY, twistY, pinchY;
ofxGuiGroup globalGroup;
ofxFloatSlider Scale;
ofxFloatSlider Rotate;
ofxFloatSlider Background;
ofxGuiGroup primGroup;
ofxFloatSlider shiftY, rotate; //, lineWidth;
ofxVec2Slider size;
ofxColorSlider color;
ofxToggle filled, type;
bool showGui;
void exit();
//---- chapter 4 ----
ofTexture image;
ofVideoPlayer video;
//ofTexture video;
ofVideoGrabber camera;
ofxGuiGroup mixerGroup;
ofxFloatSlider imageAlpha, videoAlpha, cameraAlpha;
ofFbo fbo;
void draw1();
ofShader shader;
ofxToggle kenabled;
ofxIntSlider ksectors;
ofxFloatSlider kangle, kx, ky;
//----- chapter 5 ----
//ofPlanePrimitive plane;
ofSpherePrimitive sphere;
void draw3d();
ofEasyCam cam;
ofLight light;
ofMaterial material;
ofFbo fbo2;
//ofPlanePrimitive planeTemp;
//ofxGuiGroup _3DGroup;
ofFbo fbo3d;
ofxFloatSlider show2d, show3d;
ofxFloatSlider rad, deform, deformFreq, extrude;
vector<ofPoint> vertices0;
//ofSpherePrimitive sph1;
//ofIcoSpherePrimitive sph2;
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 dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
};