1.1.2
by John Dong
Import upstream version 0.4.2~rc2 |
1 |
InitialObjectDescriptor { |
2 |
objectDescriptorID 1 |
|
3 |
audioProfileLevelIndication 1 |
|
4 |
visualProfileLevelIndication 1 |
|
5 |
sceneProfileLevelIndication 1 |
|
6 |
graphicsProfileLevelIndication 1 |
|
7 |
ODProfileLevelIndication 1 |
|
8 |
esDescr [ |
|
9 |
ES_Descriptor { |
|
10 |
ES_ID 1 |
|
11 |
decConfigDescr DecoderConfigDescriptor { |
|
12 |
streamType 1 |
|
13 |
}
|
|
14 |
}
|
|
15 |
ES_Descriptor { |
|
16 |
ES_ID 2 |
|
17 |
decConfigDescr DecoderConfigDescriptor { |
|
18 |
streamType 3 |
|
19 |
decSpecificInfo BIFSConfig { |
|
20 |
isCommandStream true |
|
21 |
pixelMetric true |
|
22 |
pixelWidth 600 |
|
23 |
pixelHeight 400 |
|
24 |
}
|
|
25 |
}
|
|
26 |
}
|
|
27 |
]
|
|
28 |
}
|
|
29 |
||
30 |
OrderedGroup { |
|
31 |
children [ |
|
32 |
Background2D { |
|
33 |
url [od:5] |
|
34 |
}
|
|
35 |
WorldInfo { |
|
1.1.4
by Julien Lavergne
Import upstream version 0.4.5 |
36 |
info ["This shows combination of Clipper2D objects" "with different modes" "" "GPAC Regression Tests" "$Date: 2007/07/27 09:46:07 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"] |
1.1.2
by John Dong
Import upstream version 0.4.2~rc2 |
37 |
title "Clipper2D Test" |
38 |
}
|
|
39 |
Transform2D { |
|
40 |
scale 0.5 0.5 |
|
41 |
translation -200 100 |
|
42 |
children [ |
|
43 |
Shape { |
|
44 |
appearance Appearance { |
|
45 |
material Material2D { |
|
46 |
emissiveColor 1 1 0 |
|
47 |
filled TRUE |
|
48 |
}
|
|
49 |
}
|
|
50 |
geometry Rectangle { |
|
51 |
size 200 200 |
|
52 |
}
|
|
53 |
}
|
|
54 |
DEF PS PlaneSensor2D { |
|
55 |
maxPosition 150 150 |
|
56 |
minPosition -150 -150 |
|
57 |
}
|
|
58 |
Shape { |
|
59 |
appearance DEF TEXTAPP Appearance { |
|
60 |
material Material2D { |
|
61 |
emissiveColor 0 0 0 |
|
62 |
filled TRUE |
|
63 |
}
|
|
64 |
}
|
|
65 |
geometry Text { |
|
66 |
string ["Translate" "round" "cliper"] |
|
67 |
fontStyle DEF FS FontStyle { |
|
68 |
justify ["MIDDLE" "MIDDLE"] |
|
69 |
size 40 |
|
70 |
}
|
|
71 |
}
|
|
72 |
}
|
|
73 |
]
|
|
74 |
}
|
|
75 |
Transform2D { |
|
76 |
scale 0.5 0.5 |
|
77 |
translation -80 100 |
|
78 |
children [ |
|
79 |
DEF S1 Switch { |
|
80 |
whichChoice 0 |
|
81 |
choice [ |
|
82 |
Group { |
|
83 |
children [ |
|
84 |
Shape { |
|
85 |
appearance USE TEXTAPP |
|
86 |
geometry Text { |
|
87 |
string ["Round Clipper" "inside = FALSE"] |
|
88 |
fontStyle USE FS |
|
89 |
}
|
|
90 |
}
|
|
91 |
DEF TS1 TouchSensor {} |
|
92 |
]
|
|
93 |
}
|
|
94 |
Group { |
|
95 |
children [ |
|
96 |
Shape { |
|
97 |
appearance USE TEXTAPP |
|
98 |
geometry Text { |
|
99 |
string ["Round Clipper" "inside = TRUE"] |
|
100 |
fontStyle USE FS |
|
101 |
}
|
|
102 |
}
|
|
103 |
DEF RTS1 TouchSensor {} |
|
104 |
]
|
|
105 |
}
|
|
106 |
]
|
|
107 |
}
|
|
108 |
]
|
|
109 |
}
|
|
110 |
Transform2D { |
|
111 |
scale 0.5 0.5 |
|
112 |
translation -80 0 |
|
113 |
children [ |
|
114 |
DEF SX1 Switch { |
|
115 |
whichChoice 0 |
|
116 |
choice [ |
|
117 |
Group { |
|
118 |
children [ |
|
119 |
Shape { |
|
120 |
appearance USE TEXTAPP |
|
121 |
geometry Text { |
|
122 |
string ["XOR = FALSE"] |
|
123 |
fontStyle USE FS |
|
124 |
}
|
|
125 |
}
|
|
126 |
DEF TSX1 TouchSensor {} |
|
127 |
]
|
|
128 |
}
|
|
129 |
Group { |
|
130 |
children [ |
|
131 |
Shape { |
|
132 |
appearance USE TEXTAPP |
|
133 |
geometry Text { |
|
134 |
string ["XOR = TRUE"] |
|
135 |
fontStyle USE FS |
|
136 |
}
|
|
137 |
}
|
|
138 |
DEF RTSX1 TouchSensor {} |
|
139 |
]
|
|
140 |
}
|
|
141 |
]
|
|
142 |
}
|
|
143 |
]
|
|
144 |
}
|
|
145 |
Transform2D { |
|
146 |
scale 0.5 0.5 |
|
147 |
translation -200 -120 |
|
148 |
children [ |
|
149 |
Shape { |
|
150 |
appearance Appearance { |
|
151 |
material Material2D { |
|
152 |
emissiveColor 1 0 1 |
|
153 |
filled TRUE |
|
154 |
}
|
|
155 |
}
|
|
156 |
geometry Circle { |
|
157 |
radius 100 |
|
158 |
}
|
|
159 |
}
|
|
160 |
DEF DS DiscSensor {} |
|
161 |
Shape { |
|
162 |
appearance USE TEXTAPP |
|
163 |
geometry Text { |
|
164 |
string ["Rotate" "square" "cliper"] |
|
165 |
fontStyle USE FS |
|
166 |
}
|
|
167 |
}
|
|
168 |
]
|
|
169 |
}
|
|
170 |
Transform2D { |
|
171 |
scale 0.5 0.5 |
|
172 |
translation -80 -120 |
|
173 |
children [ |
|
174 |
DEF S2 Switch { |
|
175 |
whichChoice 0 |
|
176 |
choice [ |
|
177 |
Group { |
|
178 |
children [ |
|
179 |
Shape { |
|
180 |
appearance USE TEXTAPP |
|
181 |
geometry Text { |
|
182 |
string ["Rect Clipper" "inside = FALSE"] |
|
183 |
fontStyle USE FS |
|
184 |
}
|
|
185 |
}
|
|
186 |
DEF TS2 TouchSensor {} |
|
187 |
]
|
|
188 |
}
|
|
189 |
Group { |
|
190 |
children [ |
|
191 |
Shape { |
|
192 |
appearance USE TEXTAPP |
|
193 |
geometry Text { |
|
194 |
string ["Rect Clipper" "inside = TRUE"] |
|
195 |
fontStyle USE FS |
|
196 |
}
|
|
197 |
}
|
|
198 |
DEF RTS2 TouchSensor {} |
|
199 |
]
|
|
200 |
}
|
|
201 |
]
|
|
202 |
}
|
|
203 |
]
|
|
204 |
}
|
|
205 |
Transform2D { |
|
206 |
translation 150 0 |
|
207 |
children [ |
|
208 |
DEF CLIP_SQ Clipper2D { |
|
209 |
inside FALSE |
|
210 |
children [ |
|
211 |
DEF CLIP_RD Clipper2D { |
|
212 |
inside FALSE |
|
213 |
children [ |
|
214 |
Shape { |
|
215 |
appearance Appearance { |
|
216 |
texture ImageTexture { |
|
217 |
url [od:10] |
|
218 |
repeatS FALSE |
|
219 |
repeatT FALSE |
|
220 |
}
|
|
221 |
}
|
|
222 |
geometry Circle { |
|
223 |
radius 100 |
|
224 |
}
|
|
225 |
}
|
|
226 |
]
|
|
227 |
geometry Circle { |
|
228 |
radius 50 |
|
229 |
}
|
|
230 |
transform DEF TR_RD Transform2D {} |
|
231 |
||
232 |
}
|
|
233 |
]
|
|
234 |
geometry Rectangle { |
|
235 |
size 200 75 |
|
236 |
}
|
|
237 |
transform DEF TR_SQ Transform2D {} |
|
238 |
||
239 |
}
|
|
240 |
]
|
|
241 |
}
|
|
242 |
DEF C1 Conditional { |
|
243 |
buffer { |
|
244 |
REPLACE CLIP_RD.inside BY TRUE |
|
245 |
REPLACE S1.whichChoice BY 1 |
|
246 |
}
|
|
247 |
}
|
|
248 |
DEF RC1 Conditional { |
|
249 |
buffer { |
|
250 |
REPLACE CLIP_RD.inside BY FALSE |
|
251 |
REPLACE S1.whichChoice BY 0 |
|
252 |
}
|
|
253 |
}
|
|
254 |
DEF CX1 Conditional { |
|
255 |
buffer { |
|
256 |
REPLACE CLIP_RD.XOR BY TRUE |
|
257 |
REPLACE SX1.whichChoice BY 1 |
|
258 |
}
|
|
259 |
}
|
|
260 |
DEF RCX1 Conditional { |
|
261 |
buffer { |
|
262 |
REPLACE CLIP_RD.XOR BY FALSE |
|
263 |
REPLACE SX1.whichChoice BY 0 |
|
264 |
}
|
|
265 |
}
|
|
266 |
DEF C2 Conditional { |
|
267 |
buffer { |
|
268 |
REPLACE CLIP_SQ.inside BY TRUE |
|
269 |
REPLACE S2.whichChoice BY 1 |
|
270 |
}
|
|
271 |
}
|
|
272 |
DEF RC2 Conditional { |
|
273 |
buffer { |
|
274 |
REPLACE CLIP_SQ.inside BY FALSE |
|
275 |
REPLACE S2.whichChoice BY 0 |
|
276 |
}
|
|
277 |
}
|
|
278 |
]
|
|
279 |
}
|
|
280 |
||
281 |
ROUTE PS.translation_changed TO TR_RD.translation |
|
282 |
ROUTE DS.rotation_changed TO TR_SQ.rotationAngle |
|
283 |
ROUTE TS1.isActive TO C1.activate |
|
284 |
ROUTE RTS1.isActive TO RC1.activate |
|
285 |
ROUTE TSX1.isActive TO CX1.activate |
|
286 |
ROUTE RTSX1.isActive TO RCX1.activate |
|
287 |
ROUTE TS2.isActive TO C2.activate |
|
288 |
ROUTE RTS2.isActive TO RC2.activate |
|
289 |
||
290 |
AT 0 { |
|
291 |
UPDATE OD [ |
|
292 |
ObjectDescriptor { |
|
293 |
objectDescriptorID 5 |
|
294 |
esDescr [ |
|
295 |
ES_Descriptor { |
|
296 |
ES_ID 10 |
|
297 |
muxInfo MuxInfo { |
|
298 |
fileName "auxiliary_files/sky.jpg" |
|
299 |
}
|
|
300 |
}
|
|
301 |
]
|
|
302 |
}
|
|
303 |
ObjectDescriptor { |
|
304 |
objectDescriptorID 10 |
|
305 |
esDescr [ |
|
306 |
ES_Descriptor { |
|
307 |
ES_ID 20 |
|
308 |
muxInfo MuxInfo { |
|
309 |
fileName "auxiliary_files/logo.jpg" |
|
310 |
}
|
|
311 |
}
|
|
312 |
]
|
|
313 |
}
|
|
314 |
]
|
|
315 |
}
|
|
316 |