aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/09.openGL/05.load_identity_matrix.pd
blob: dc8498d5f60bdfdc48b36f84eb0a4cfc2e024042 (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
#N canvas 6 61 650 591 10;
#X declare -lib Gem;
#X obj 64 47 gemhead;
#X obj 96 94 gemlist_info;
#X floatatom 177 138 5 0 0 0 - - -;
#X floatatom 217 138 5 0 0 0 - - -;
#X floatatom 258 138 5 0 0 0 - - -;
#X obj 177 115 unpack f f f;
#X text 185 97 position;
#X obj 64 71 t a a;
#X obj 64 328 GEMglLoadIdentity;
#X obj 64 204 translateXYZ 2 1 3;
#X obj 96 254 gemlist_info;
#X floatatom 177 298 5 0 0 0 - - -;
#X floatatom 217 298 5 0 0 0 - - -;
#X floatatom 258 298 5 0 0 0 - - -;
#X obj 177 275 unpack f f f;
#X text 185 257 position;
#X obj 64 231 t a a;
#X obj 96 384 gemlist_info;
#X floatatom 177 428 5 0 0 0 - - -;
#X floatatom 217 428 5 0 0 0 - - -;
#X floatatom 258 428 5 0 0 0 - - -;
#X obj 177 405 unpack f f f;
#X text 185 387 position;
#X obj 64 361 t a a;
#X obj 64 532 circle;
#X floatatom 105 179 5 0 0 0 - - -;
#X obj 391 101 gemwin;
#X msg 400 78 create \, 1;
#X obj 64 457 translateXYZ 0 0 -4;
#X obj 96 504 gemlist_info;
#X floatatom 177 548 5 0 0 0 - - -;
#X floatatom 217 548 5 0 0 0 - - -;
#X floatatom 258 548 5 0 0 0 - - -;
#X obj 177 525 unpack f f f;
#X text 185 507 position;
#X obj 64 481 t a a;
#X text 272 197 <- this translation does not affect the circle \, because
of the "load identity" object that resets the transformation;
#X text 209 333 <- this object reset the gemlist sent by the gemhead.
;
#X text 211 457 <- move the object regarding the camera position (this
is normally done automatically by the gemwin \, but since we have reset
the transformation matrix we have to do it ourselves...);
#X obj 506 9 declare -lib Gem;
#X connect 0 0 7 0;
#X connect 1 4 5 0;
#X connect 5 0 2 0;
#X connect 5 1 3 0;
#X connect 5 2 4 0;
#X connect 7 0 9 0;
#X connect 7 1 1 0;
#X connect 8 0 23 0;
#X connect 9 0 16 0;
#X connect 10 4 14 0;
#X connect 14 0 11 0;
#X connect 14 1 12 0;
#X connect 14 2 13 0;
#X connect 16 0 8 0;
#X connect 16 1 10 0;
#X connect 17 4 21 0;
#X connect 21 0 18 0;
#X connect 21 1 19 0;
#X connect 21 2 20 0;
#X connect 23 0 28 0;
#X connect 23 1 17 0;
#X connect 25 0 9 1;
#X connect 27 0 26 0;
#X connect 28 0 35 0;
#X connect 29 4 33 0;
#X connect 33 0 30 0;
#X connect 33 1 31 0;
#X connect 33 2 32 0;
#X connect 35 0 24 0;
#X connect 35 1 29 0;