aboutsummaryrefslogtreecommitdiff
path: root/opengl/doc/examples/example13.pd
blob: a8c5f75abad1b7b8cbcf27b9eb01625745c17832 (plain)
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
#N canvas 478 168 669 751 10;
#X obj 55 68 metro 40;
#X obj 55 38 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 55 110 3dp_windowcontext;
#X obj 262 479 3dp_snap;
#X obj 355 270 3dp_light 0;
#X obj 355 242 3dp_view transxyz 5 5 0;
#X obj 204 224 3dp_push;
#X obj 262 447 3dp_draw sphere 7 10 10;
#X obj 204 258 3dp_mouserotate;
#X obj 262 411 3dp_draw icosa 1;
#X obj 204 340 3dp_color;
#X obj 262 385 3dp_view scale 1;
#X floatatom 369 356 5 0 0;
#N canvas 0 0 291 420 coord_to_color 0;
#X obj 97 85 route drag;
#X obj 97 147 *;
#X obj 134 146 *;
#X obj 97 174 +;
#X obj 97 281 sqrt;
#X obj 97 225 - 1;
#X obj 97 249 * -1;
#X obj 97 114 unpack 0 0;
#X obj 98 45 inlet;
#X obj 53 337 outlet;
#X obj 181 332 outlet;
#X obj 116 336 outlet;
#X connect 0 0 7 0;
#X connect 1 0 3 0;
#X connect 2 0 3 1;
#X connect 3 0 5 0;
#X connect 4 0 11 0;
#X connect 5 0 6 0;
#X connect 6 0 4 0;
#X connect 7 0 1 1;
#X connect 7 0 1 0;
#X connect 7 0 9 0;
#X connect 7 1 2 1;
#X connect 7 1 2 0;
#X connect 7 1 10 0;
#X connect 8 0 0 0;
#X restore 223 303 pd coord_to_color;
#X obj 372 335 hsl 128 15 1 3 0 1 empty empty empty -2 -6 0 8 -262144
-1 -1 7900 1;
#X obj 204 194 3dp_draw clear;
#X text 209 658 <- stretch the texture to cover the entire window (click
for info);
#X text 119 13 fixed resolution processing (independent of the display
window size) using multipass rendering;
#X floatatom 210 631 5 0 0;
#X obj 55 658 3dp_display_texture;
#X text 338 480 <- snap the result to a texture;
#X text 228 154 <- create a subcontext to do some drawing;
#X text 402 76 see also;
#X obj 405 97 3dp_fixedsizewindowcontext 64 64;
#X obj 55 155 3dp_subcontext 320 240;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 24 0;
#X connect 2 1 13 0;
#X connect 2 1 8 1;
#X connect 3 1 7 1;
#X connect 3 1 19 1;
#X connect 5 0 4 0;
#X connect 6 0 8 0;
#X connect 6 1 5 0;
#X connect 7 0 3 0;
#X connect 8 0 10 0;
#X connect 9 0 7 0;
#X connect 10 1 11 0;
#X connect 11 0 9 0;
#X connect 12 0 11 1;
#X connect 13 0 10 1;
#X connect 13 1 10 2;
#X connect 13 2 10 3;
#X connect 14 0 12 0;
#X connect 15 0 6 0;
#X connect 18 0 19 2;
#X connect 24 0 19 0;
#X connect 24 1 15 0;