-
Notifications
You must be signed in to change notification settings - Fork 0
/
Processing3Compositor.pde
74 lines (63 loc) · 2.22 KB
/
Processing3Compositor.pde
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
Compositor compositor;
void settings() {
//fullScreen(P3D);
size(400, 400, P3D);
}
void addApplications() {
compositor.add(new Applications_DraggableExample(), 200, 200);
compositor.setLocation(0, 0);
compositor.add(new Applications_Cube(), 200, 200);
compositor.setLocation(0, 200);
compositor.add(new Applications_XCursor_Decoder_Example(), 200, 200);
compositor.setLocation(200, 0);
compositor.add(new Applications_Cube(), 200, 200);
compositor.setLocation(200, 200);
//compositor.add(new Applications_DraggableExample(), 200, 200);
//compositor.setLocation(0+400, 0);
//compositor.add(new Applications_Cube(), 200, 200);
//compositor.setLocation(0+400, 200);
//compositor.add(new Applications_XCursor_Decoder_Example(), 200, 200);
//compositor.setLocation(200+400, 0);
//compositor.add(new Applications_Cube(), 200, 200);
//compositor.setLocation(200+400, 200);
//compositor.add(new Applications_DraggableExample(), 200, 200);
//compositor.setLocation(0, 0+400);
//compositor.add(new Applications_Cube(), 200, 200);
//compositor.setLocation(0, 200+400);
//compositor.add(new Applications_XCursor_Decoder_Example(), 200, 200);
//compositor.setLocation(200, 0+400);
//compositor.add(new Applications_Cube(), 200, 200);
//compositor.setLocation(200, 200+400);
//compositor.add(new Applications_DraggableExample(), 200, 200);
//compositor.setLocation(0+400, 0+400);
//compositor.add(new Applications_Cube(), 200, 200);
//compositor.setLocation(0+400, 200+400);
//compositor.add(new Applications_XCursor_Decoder_Example(), 200, 200);
//compositor.setLocation(200+400, 0+400);
//compositor.add(new Applications_Cube(), 200, 200);
//compositor.setLocation(200+400, 200+400);
}
void setup() {
compositor = new Compositor(width, height);
compositor.displayFPS = true;
compositor.displayWindowFPS = true;
compositor.debug = false;
compositor.handleInputEvents = false;
addApplications();
compositor.setup();
}
void draw() {
compositor.draw(); //<>// //<>// //<>//
}
void mousePressed() {
compositor.mousePressed();
}
void mouseDragged() {
compositor.mouseDragged();
}
void mouseReleased() {
compositor.mouseReleased();
}
void mouseMoved() {
compositor.mouseMoved();
}