1 #include <dae.h>
2 #include <dae/daeDom.h>
3 #include <1.5/dom/domGles2_value.h>
4 #include <dae/daeMetaCMPolicy.h>
5 #include <dae/daeMetaSequence.h>
6 #include <dae/daeMetaChoice.h>
7 #include <dae/daeMetaGroup.h>
8 #include <dae/daeMetaAny.h>
9 #include <dae/daeMetaElementAttribute.h>
10
11
12 namespace ColladaDOM150 {
13 daeElementRef
create(DAE & dae)14 domGles2_value::create(DAE& dae)
15 {
16 domGles2_valueRef ref = new domGles2_value(dae);
17 return ref;
18 }
19
20
21 daeMetaElement *
registerElement(DAE & dae)22 domGles2_value::registerElement(DAE& dae)
23 {
24 daeMetaElement* meta = dae.getMeta(ID());
25 if ( meta != NULL ) return meta;
26
27 meta = new daeMetaElement(dae);
28 dae.setMeta(ID(), *meta);
29 meta->setName( "gles2_value" );
30 meta->registerClass(domGles2_value::create);
31
32 meta->setIsTransparent( true );
33 daeMetaCMPolicy *cm = NULL;
34 daeMetaElementAttribute *mea = NULL;
35 cm = new daeMetaChoice( meta, cm, 0, 0, 1, 1 );
36
37 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
38 mea->setName( "bool" );
39 mea->setOffset( daeOffsetOf(domGles2_value,elemBool) );
40 mea->setElementType( domGles2_value::domBool::registerElement(dae) );
41 cm->appendChild( mea );
42
43 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
44 mea->setName( "bvec2" );
45 mea->setOffset( daeOffsetOf(domGles2_value,elemBvec2) );
46 mea->setElementType( domGles2_value::domBvec2::registerElement(dae) );
47 cm->appendChild( mea );
48
49 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
50 mea->setName( "bvec3" );
51 mea->setOffset( daeOffsetOf(domGles2_value,elemBvec3) );
52 mea->setElementType( domGles2_value::domBvec3::registerElement(dae) );
53 cm->appendChild( mea );
54
55 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
56 mea->setName( "bvec4" );
57 mea->setOffset( daeOffsetOf(domGles2_value,elemBvec4) );
58 mea->setElementType( domGles2_value::domBvec4::registerElement(dae) );
59 cm->appendChild( mea );
60
61 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
62 mea->setName( "float" );
63 mea->setOffset( daeOffsetOf(domGles2_value,elemFloat) );
64 mea->setElementType( domGles2_value::domFloat::registerElement(dae) );
65 cm->appendChild( mea );
66
67 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
68 mea->setName( "vec2" );
69 mea->setOffset( daeOffsetOf(domGles2_value,elemVec2) );
70 mea->setElementType( domGles2_value::domVec2::registerElement(dae) );
71 cm->appendChild( mea );
72
73 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
74 mea->setName( "vec3" );
75 mea->setOffset( daeOffsetOf(domGles2_value,elemVec3) );
76 mea->setElementType( domGles2_value::domVec3::registerElement(dae) );
77 cm->appendChild( mea );
78
79 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
80 mea->setName( "vec4" );
81 mea->setOffset( daeOffsetOf(domGles2_value,elemVec4) );
82 mea->setElementType( domGles2_value::domVec4::registerElement(dae) );
83 cm->appendChild( mea );
84
85 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
86 mea->setName( "mat2" );
87 mea->setOffset( daeOffsetOf(domGles2_value,elemMat2) );
88 mea->setElementType( domGles2_value::domMat2::registerElement(dae) );
89 cm->appendChild( mea );
90
91 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
92 mea->setName( "mat3" );
93 mea->setOffset( daeOffsetOf(domGles2_value,elemMat3) );
94 mea->setElementType( domGles2_value::domMat3::registerElement(dae) );
95 cm->appendChild( mea );
96
97 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
98 mea->setName( "mat4" );
99 mea->setOffset( daeOffsetOf(domGles2_value,elemMat4) );
100 mea->setElementType( domGles2_value::domMat4::registerElement(dae) );
101 cm->appendChild( mea );
102
103 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
104 mea->setName( "int" );
105 mea->setOffset( daeOffsetOf(domGles2_value,elemInt) );
106 mea->setElementType( domGles2_value::domInt::registerElement(dae) );
107 cm->appendChild( mea );
108
109 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
110 mea->setName( "ivec2" );
111 mea->setOffset( daeOffsetOf(domGles2_value,elemIvec2) );
112 mea->setElementType( domGles2_value::domIvec2::registerElement(dae) );
113 cm->appendChild( mea );
114
115 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
116 mea->setName( "ivec3" );
117 mea->setOffset( daeOffsetOf(domGles2_value,elemIvec3) );
118 mea->setElementType( domGles2_value::domIvec3::registerElement(dae) );
119 cm->appendChild( mea );
120
121 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
122 mea->setName( "ivec4" );
123 mea->setOffset( daeOffsetOf(domGles2_value,elemIvec4) );
124 mea->setElementType( domGles2_value::domIvec4::registerElement(dae) );
125 cm->appendChild( mea );
126
127 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
128 mea->setName( "enum" );
129 mea->setOffset( daeOffsetOf(domGles2_value,elemEnum) );
130 mea->setElementType( domGles2_value::domEnum::registerElement(dae) );
131 cm->appendChild( mea );
132
133 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
134 mea->setName( "sampler2D" );
135 mea->setOffset( daeOffsetOf(domGles2_value,elemSampler2D) );
136 mea->setElementType( domFx_sampler2D::registerElement(dae) );
137 cm->appendChild( mea );
138
139 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
140 mea->setName( "sampler3D" );
141 mea->setOffset( daeOffsetOf(domGles2_value,elemSampler3D) );
142 mea->setElementType( domFx_sampler3D::registerElement(dae) );
143 cm->appendChild( mea );
144
145 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
146 mea->setName( "samplerCUBE" );
147 mea->setOffset( daeOffsetOf(domGles2_value,elemSamplerCUBE) );
148 mea->setElementType( domFx_samplerCUBE::registerElement(dae) );
149 cm->appendChild( mea );
150
151 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
152 mea->setName( "samplerDEPTH" );
153 mea->setOffset( daeOffsetOf(domGles2_value,elemSamplerDEPTH) );
154 mea->setElementType( domFx_samplerDEPTH::registerElement(dae) );
155 cm->appendChild( mea );
156
157 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
158 mea->setName( "usertype" );
159 mea->setOffset( daeOffsetOf(domGles2_value,elemUsertype) );
160 mea->setElementType( domGles2_value::domUsertype::registerElement(dae) );
161 cm->appendChild( mea );
162
163 mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
164 mea->setName( "array" );
165 mea->setOffset( daeOffsetOf(domGles2_value,elemArray) );
166 mea->setElementType( domGles2_value::domArray::registerElement(dae) );
167 cm->appendChild( mea );
168
169 cm->setMaxOrdinal( 0 );
170 meta->setCMRoot( cm );
171 // Ordered list of sub-elements
172 meta->addContents(daeOffsetOf(domGles2_value,_contents));
173 meta->addContentsOrder(daeOffsetOf(domGles2_value,_contentsOrder));
174
175 meta->addCMDataArray(daeOffsetOf(domGles2_value,_CMData), 1);
176 meta->setElementSize(sizeof(domGles2_value));
177 meta->validate();
178
179 return meta;
180 }
181
182 daeElementRef
create(DAE & dae)183 domGles2_value::domBool::create(DAE& dae)
184 {
185 domGles2_value::domBoolRef ref = new domGles2_value::domBool(dae);
186 return ref;
187 }
188
189
190 daeMetaElement *
registerElement(DAE & dae)191 domGles2_value::domBool::registerElement(DAE& dae)
192 {
193 daeMetaElement* meta = dae.getMeta(ID());
194 if ( meta != NULL ) return meta;
195
196 meta = new daeMetaElement(dae);
197 dae.setMeta(ID(), *meta);
198 meta->setName( "bool" );
199 meta->registerClass(domGles2_value::domBool::create);
200
201 meta->setIsInnerClass( true );
202 // Add attribute: _value
203 {
204 daeMetaAttribute *ma = new daeMetaAttribute;
205 ma->setName( "_value" );
206 ma->setType( dae.getAtomicTypes().get("xsBoolean"));
207 ma->setOffset( daeOffsetOf( domGles2_value::domBool , _value ));
208 ma->setContainer( meta );
209 meta->appendAttribute(ma);
210 }
211
212 meta->setElementSize(sizeof(domGles2_value::domBool));
213 meta->validate();
214
215 return meta;
216 }
217
218 daeElementRef
create(DAE & dae)219 domGles2_value::domBvec2::create(DAE& dae)
220 {
221 domGles2_value::domBvec2Ref ref = new domGles2_value::domBvec2(dae);
222 return ref;
223 }
224
225
226 daeMetaElement *
registerElement(DAE & dae)227 domGles2_value::domBvec2::registerElement(DAE& dae)
228 {
229 daeMetaElement* meta = dae.getMeta(ID());
230 if ( meta != NULL ) return meta;
231
232 meta = new daeMetaElement(dae);
233 dae.setMeta(ID(), *meta);
234 meta->setName( "bvec2" );
235 meta->registerClass(domGles2_value::domBvec2::create);
236
237 meta->setIsInnerClass( true );
238 // Add attribute: _value
239 {
240 daeMetaAttribute *ma = new daeMetaArrayAttribute;
241 ma->setName( "_value" );
242 ma->setType( dae.getAtomicTypes().get("Bool2"));
243 ma->setOffset( daeOffsetOf( domGles2_value::domBvec2 , _value ));
244 ma->setContainer( meta );
245 meta->appendAttribute(ma);
246 }
247
248 meta->setElementSize(sizeof(domGles2_value::domBvec2));
249 meta->validate();
250
251 return meta;
252 }
253
254 daeElementRef
create(DAE & dae)255 domGles2_value::domBvec3::create(DAE& dae)
256 {
257 domGles2_value::domBvec3Ref ref = new domGles2_value::domBvec3(dae);
258 return ref;
259 }
260
261
262 daeMetaElement *
registerElement(DAE & dae)263 domGles2_value::domBvec3::registerElement(DAE& dae)
264 {
265 daeMetaElement* meta = dae.getMeta(ID());
266 if ( meta != NULL ) return meta;
267
268 meta = new daeMetaElement(dae);
269 dae.setMeta(ID(), *meta);
270 meta->setName( "bvec3" );
271 meta->registerClass(domGles2_value::domBvec3::create);
272
273 meta->setIsInnerClass( true );
274 // Add attribute: _value
275 {
276 daeMetaAttribute *ma = new daeMetaArrayAttribute;
277 ma->setName( "_value" );
278 ma->setType( dae.getAtomicTypes().get("Bool3"));
279 ma->setOffset( daeOffsetOf( domGles2_value::domBvec3 , _value ));
280 ma->setContainer( meta );
281 meta->appendAttribute(ma);
282 }
283
284 meta->setElementSize(sizeof(domGles2_value::domBvec3));
285 meta->validate();
286
287 return meta;
288 }
289
290 daeElementRef
create(DAE & dae)291 domGles2_value::domBvec4::create(DAE& dae)
292 {
293 domGles2_value::domBvec4Ref ref = new domGles2_value::domBvec4(dae);
294 return ref;
295 }
296
297
298 daeMetaElement *
registerElement(DAE & dae)299 domGles2_value::domBvec4::registerElement(DAE& dae)
300 {
301 daeMetaElement* meta = dae.getMeta(ID());
302 if ( meta != NULL ) return meta;
303
304 meta = new daeMetaElement(dae);
305 dae.setMeta(ID(), *meta);
306 meta->setName( "bvec4" );
307 meta->registerClass(domGles2_value::domBvec4::create);
308
309 meta->setIsInnerClass( true );
310 // Add attribute: _value
311 {
312 daeMetaAttribute *ma = new daeMetaArrayAttribute;
313 ma->setName( "_value" );
314 ma->setType( dae.getAtomicTypes().get("Bool4"));
315 ma->setOffset( daeOffsetOf( domGles2_value::domBvec4 , _value ));
316 ma->setContainer( meta );
317 meta->appendAttribute(ma);
318 }
319
320 meta->setElementSize(sizeof(domGles2_value::domBvec4));
321 meta->validate();
322
323 return meta;
324 }
325
326 daeElementRef
create(DAE & dae)327 domGles2_value::domFloat::create(DAE& dae)
328 {
329 domGles2_value::domFloatRef ref = new domGles2_value::domFloat(dae);
330 return ref;
331 }
332
333
334 daeMetaElement *
registerElement(DAE & dae)335 domGles2_value::domFloat::registerElement(DAE& dae)
336 {
337 daeMetaElement* meta = dae.getMeta(ID());
338 if ( meta != NULL ) return meta;
339
340 meta = new daeMetaElement(dae);
341 dae.setMeta(ID(), *meta);
342 meta->setName( "float" );
343 meta->registerClass(domGles2_value::domFloat::create);
344
345 meta->setIsInnerClass( true );
346 // Add attribute: _value
347 {
348 daeMetaAttribute *ma = new daeMetaAttribute;
349 ma->setName( "_value" );
350 ma->setType( dae.getAtomicTypes().get("Float"));
351 ma->setOffset( daeOffsetOf( domGles2_value::domFloat , _value ));
352 ma->setContainer( meta );
353 meta->appendAttribute(ma);
354 }
355
356 meta->setElementSize(sizeof(domGles2_value::domFloat));
357 meta->validate();
358
359 return meta;
360 }
361
362 daeElementRef
create(DAE & dae)363 domGles2_value::domVec2::create(DAE& dae)
364 {
365 domGles2_value::domVec2Ref ref = new domGles2_value::domVec2(dae);
366 return ref;
367 }
368
369
370 daeMetaElement *
registerElement(DAE & dae)371 domGles2_value::domVec2::registerElement(DAE& dae)
372 {
373 daeMetaElement* meta = dae.getMeta(ID());
374 if ( meta != NULL ) return meta;
375
376 meta = new daeMetaElement(dae);
377 dae.setMeta(ID(), *meta);
378 meta->setName( "vec2" );
379 meta->registerClass(domGles2_value::domVec2::create);
380
381 meta->setIsInnerClass( true );
382 // Add attribute: _value
383 {
384 daeMetaAttribute *ma = new daeMetaArrayAttribute;
385 ma->setName( "_value" );
386 ma->setType( dae.getAtomicTypes().get("Float2"));
387 ma->setOffset( daeOffsetOf( domGles2_value::domVec2 , _value ));
388 ma->setContainer( meta );
389 meta->appendAttribute(ma);
390 }
391
392 meta->setElementSize(sizeof(domGles2_value::domVec2));
393 meta->validate();
394
395 return meta;
396 }
397
398 daeElementRef
create(DAE & dae)399 domGles2_value::domVec3::create(DAE& dae)
400 {
401 domGles2_value::domVec3Ref ref = new domGles2_value::domVec3(dae);
402 return ref;
403 }
404
405
406 daeMetaElement *
registerElement(DAE & dae)407 domGles2_value::domVec3::registerElement(DAE& dae)
408 {
409 daeMetaElement* meta = dae.getMeta(ID());
410 if ( meta != NULL ) return meta;
411
412 meta = new daeMetaElement(dae);
413 dae.setMeta(ID(), *meta);
414 meta->setName( "vec3" );
415 meta->registerClass(domGles2_value::domVec3::create);
416
417 meta->setIsInnerClass( true );
418 // Add attribute: _value
419 {
420 daeMetaAttribute *ma = new daeMetaArrayAttribute;
421 ma->setName( "_value" );
422 ma->setType( dae.getAtomicTypes().get("Float3"));
423 ma->setOffset( daeOffsetOf( domGles2_value::domVec3 , _value ));
424 ma->setContainer( meta );
425 meta->appendAttribute(ma);
426 }
427
428 meta->setElementSize(sizeof(domGles2_value::domVec3));
429 meta->validate();
430
431 return meta;
432 }
433
434 daeElementRef
create(DAE & dae)435 domGles2_value::domVec4::create(DAE& dae)
436 {
437 domGles2_value::domVec4Ref ref = new domGles2_value::domVec4(dae);
438 return ref;
439 }
440
441
442 daeMetaElement *
registerElement(DAE & dae)443 domGles2_value::domVec4::registerElement(DAE& dae)
444 {
445 daeMetaElement* meta = dae.getMeta(ID());
446 if ( meta != NULL ) return meta;
447
448 meta = new daeMetaElement(dae);
449 dae.setMeta(ID(), *meta);
450 meta->setName( "vec4" );
451 meta->registerClass(domGles2_value::domVec4::create);
452
453 meta->setIsInnerClass( true );
454 // Add attribute: _value
455 {
456 daeMetaAttribute *ma = new daeMetaArrayAttribute;
457 ma->setName( "_value" );
458 ma->setType( dae.getAtomicTypes().get("Float4"));
459 ma->setOffset( daeOffsetOf( domGles2_value::domVec4 , _value ));
460 ma->setContainer( meta );
461 meta->appendAttribute(ma);
462 }
463
464 meta->setElementSize(sizeof(domGles2_value::domVec4));
465 meta->validate();
466
467 return meta;
468 }
469
470 daeElementRef
create(DAE & dae)471 domGles2_value::domMat2::create(DAE& dae)
472 {
473 domGles2_value::domMat2Ref ref = new domGles2_value::domMat2(dae);
474 return ref;
475 }
476
477
478 daeMetaElement *
registerElement(DAE & dae)479 domGles2_value::domMat2::registerElement(DAE& dae)
480 {
481 daeMetaElement* meta = dae.getMeta(ID());
482 if ( meta != NULL ) return meta;
483
484 meta = new daeMetaElement(dae);
485 dae.setMeta(ID(), *meta);
486 meta->setName( "mat2" );
487 meta->registerClass(domGles2_value::domMat2::create);
488
489 meta->setIsInnerClass( true );
490 // Add attribute: _value
491 {
492 daeMetaAttribute *ma = new daeMetaArrayAttribute;
493 ma->setName( "_value" );
494 ma->setType( dae.getAtomicTypes().get("Float2x2"));
495 ma->setOffset( daeOffsetOf( domGles2_value::domMat2 , _value ));
496 ma->setContainer( meta );
497 meta->appendAttribute(ma);
498 }
499
500 meta->setElementSize(sizeof(domGles2_value::domMat2));
501 meta->validate();
502
503 return meta;
504 }
505
506 daeElementRef
create(DAE & dae)507 domGles2_value::domMat3::create(DAE& dae)
508 {
509 domGles2_value::domMat3Ref ref = new domGles2_value::domMat3(dae);
510 return ref;
511 }
512
513
514 daeMetaElement *
registerElement(DAE & dae)515 domGles2_value::domMat3::registerElement(DAE& dae)
516 {
517 daeMetaElement* meta = dae.getMeta(ID());
518 if ( meta != NULL ) return meta;
519
520 meta = new daeMetaElement(dae);
521 dae.setMeta(ID(), *meta);
522 meta->setName( "mat3" );
523 meta->registerClass(domGles2_value::domMat3::create);
524
525 meta->setIsInnerClass( true );
526 // Add attribute: _value
527 {
528 daeMetaAttribute *ma = new daeMetaArrayAttribute;
529 ma->setName( "_value" );
530 ma->setType( dae.getAtomicTypes().get("Float3x3"));
531 ma->setOffset( daeOffsetOf( domGles2_value::domMat3 , _value ));
532 ma->setContainer( meta );
533 meta->appendAttribute(ma);
534 }
535
536 meta->setElementSize(sizeof(domGles2_value::domMat3));
537 meta->validate();
538
539 return meta;
540 }
541
542 daeElementRef
create(DAE & dae)543 domGles2_value::domMat4::create(DAE& dae)
544 {
545 domGles2_value::domMat4Ref ref = new domGles2_value::domMat4(dae);
546 return ref;
547 }
548
549
550 daeMetaElement *
registerElement(DAE & dae)551 domGles2_value::domMat4::registerElement(DAE& dae)
552 {
553 daeMetaElement* meta = dae.getMeta(ID());
554 if ( meta != NULL ) return meta;
555
556 meta = new daeMetaElement(dae);
557 dae.setMeta(ID(), *meta);
558 meta->setName( "mat4" );
559 meta->registerClass(domGles2_value::domMat4::create);
560
561 meta->setIsInnerClass( true );
562 // Add attribute: _value
563 {
564 daeMetaAttribute *ma = new daeMetaArrayAttribute;
565 ma->setName( "_value" );
566 ma->setType( dae.getAtomicTypes().get("Float4x4"));
567 ma->setOffset( daeOffsetOf( domGles2_value::domMat4 , _value ));
568 ma->setContainer( meta );
569 meta->appendAttribute(ma);
570 }
571
572 meta->setElementSize(sizeof(domGles2_value::domMat4));
573 meta->validate();
574
575 return meta;
576 }
577
578 daeElementRef
create(DAE & dae)579 domGles2_value::domInt::create(DAE& dae)
580 {
581 domGles2_value::domIntRef ref = new domGles2_value::domInt(dae);
582 return ref;
583 }
584
585
586 daeMetaElement *
registerElement(DAE & dae)587 domGles2_value::domInt::registerElement(DAE& dae)
588 {
589 daeMetaElement* meta = dae.getMeta(ID());
590 if ( meta != NULL ) return meta;
591
592 meta = new daeMetaElement(dae);
593 dae.setMeta(ID(), *meta);
594 meta->setName( "int" );
595 meta->registerClass(domGles2_value::domInt::create);
596
597 meta->setIsInnerClass( true );
598 // Add attribute: _value
599 {
600 daeMetaAttribute *ma = new daeMetaAttribute;
601 ma->setName( "_value" );
602 ma->setType( dae.getAtomicTypes().get("Int"));
603 ma->setOffset( daeOffsetOf( domGles2_value::domInt , _value ));
604 ma->setContainer( meta );
605 meta->appendAttribute(ma);
606 }
607
608 meta->setElementSize(sizeof(domGles2_value::domInt));
609 meta->validate();
610
611 return meta;
612 }
613
614 daeElementRef
create(DAE & dae)615 domGles2_value::domIvec2::create(DAE& dae)
616 {
617 domGles2_value::domIvec2Ref ref = new domGles2_value::domIvec2(dae);
618 return ref;
619 }
620
621
622 daeMetaElement *
registerElement(DAE & dae)623 domGles2_value::domIvec2::registerElement(DAE& dae)
624 {
625 daeMetaElement* meta = dae.getMeta(ID());
626 if ( meta != NULL ) return meta;
627
628 meta = new daeMetaElement(dae);
629 dae.setMeta(ID(), *meta);
630 meta->setName( "ivec2" );
631 meta->registerClass(domGles2_value::domIvec2::create);
632
633 meta->setIsInnerClass( true );
634 // Add attribute: _value
635 {
636 daeMetaAttribute *ma = new daeMetaArrayAttribute;
637 ma->setName( "_value" );
638 ma->setType( dae.getAtomicTypes().get("Int2"));
639 ma->setOffset( daeOffsetOf( domGles2_value::domIvec2 , _value ));
640 ma->setContainer( meta );
641 meta->appendAttribute(ma);
642 }
643
644 meta->setElementSize(sizeof(domGles2_value::domIvec2));
645 meta->validate();
646
647 return meta;
648 }
649
650 daeElementRef
create(DAE & dae)651 domGles2_value::domIvec3::create(DAE& dae)
652 {
653 domGles2_value::domIvec3Ref ref = new domGles2_value::domIvec3(dae);
654 return ref;
655 }
656
657
658 daeMetaElement *
registerElement(DAE & dae)659 domGles2_value::domIvec3::registerElement(DAE& dae)
660 {
661 daeMetaElement* meta = dae.getMeta(ID());
662 if ( meta != NULL ) return meta;
663
664 meta = new daeMetaElement(dae);
665 dae.setMeta(ID(), *meta);
666 meta->setName( "ivec3" );
667 meta->registerClass(domGles2_value::domIvec3::create);
668
669 meta->setIsInnerClass( true );
670 // Add attribute: _value
671 {
672 daeMetaAttribute *ma = new daeMetaArrayAttribute;
673 ma->setName( "_value" );
674 ma->setType( dae.getAtomicTypes().get("Int3"));
675 ma->setOffset( daeOffsetOf( domGles2_value::domIvec3 , _value ));
676 ma->setContainer( meta );
677 meta->appendAttribute(ma);
678 }
679
680 meta->setElementSize(sizeof(domGles2_value::domIvec3));
681 meta->validate();
682
683 return meta;
684 }
685
686 daeElementRef
create(DAE & dae)687 domGles2_value::domIvec4::create(DAE& dae)
688 {
689 domGles2_value::domIvec4Ref ref = new domGles2_value::domIvec4(dae);
690 return ref;
691 }
692
693
694 daeMetaElement *
registerElement(DAE & dae)695 domGles2_value::domIvec4::registerElement(DAE& dae)
696 {
697 daeMetaElement* meta = dae.getMeta(ID());
698 if ( meta != NULL ) return meta;
699
700 meta = new daeMetaElement(dae);
701 dae.setMeta(ID(), *meta);
702 meta->setName( "ivec4" );
703 meta->registerClass(domGles2_value::domIvec4::create);
704
705 meta->setIsInnerClass( true );
706 // Add attribute: _value
707 {
708 daeMetaAttribute *ma = new daeMetaArrayAttribute;
709 ma->setName( "_value" );
710 ma->setType( dae.getAtomicTypes().get("Int4"));
711 ma->setOffset( daeOffsetOf( domGles2_value::domIvec4 , _value ));
712 ma->setContainer( meta );
713 meta->appendAttribute(ma);
714 }
715
716 meta->setElementSize(sizeof(domGles2_value::domIvec4));
717 meta->validate();
718
719 return meta;
720 }
721
722 daeElementRef
create(DAE & dae)723 domGles2_value::domEnum::create(DAE& dae)
724 {
725 domGles2_value::domEnumRef ref = new domGles2_value::domEnum(dae);
726 return ref;
727 }
728
729
730 daeMetaElement *
registerElement(DAE & dae)731 domGles2_value::domEnum::registerElement(DAE& dae)
732 {
733 daeMetaElement* meta = dae.getMeta(ID());
734 if ( meta != NULL ) return meta;
735
736 meta = new daeMetaElement(dae);
737 dae.setMeta(ID(), *meta);
738 meta->setName( "enum" );
739 meta->registerClass(domGles2_value::domEnum::create);
740
741 meta->setIsInnerClass( true );
742 // Add attribute: _value
743 {
744 daeMetaAttribute *ma = new daeMetaAttribute;
745 ma->setName( "_value" );
746 ma->setType( dae.getAtomicTypes().get("Gl_enumeration"));
747 ma->setOffset( daeOffsetOf( domGles2_value::domEnum , _value ));
748 ma->setContainer( meta );
749 meta->appendAttribute(ma);
750 }
751
752 meta->setElementSize(sizeof(domGles2_value::domEnum));
753 meta->validate();
754
755 return meta;
756 }
757
758 daeElementRef
create(DAE & dae)759 domGles2_value::domUsertype::create(DAE& dae)
760 {
761 domGles2_value::domUsertypeRef ref = new domGles2_value::domUsertype(dae);
762 return ref;
763 }
764
765
766 daeMetaElement *
registerElement(DAE & dae)767 domGles2_value::domUsertype::registerElement(DAE& dae)
768 {
769 daeMetaElement* meta = dae.getMeta(ID());
770 if ( meta != NULL ) return meta;
771
772 meta = new daeMetaElement(dae);
773 dae.setMeta(ID(), *meta);
774 meta->setName( "usertype" );
775 meta->registerClass(domGles2_value::domUsertype::create);
776
777 meta->setIsInnerClass( true );
778 daeMetaCMPolicy *cm = NULL;
779 daeMetaElementAttribute *mea = NULL;
780 cm = new daeMetaSequence( meta, cm, 0, 1, 1 );
781
782 mea = new daeMetaElementArrayAttribute( meta, cm, 0, 0, -1 );
783 mea->setName( "setparam" );
784 mea->setOffset( daeOffsetOf(domGles2_value::domUsertype,elemSetparam_array) );
785 mea->setElementType( domGles2_value::domUsertype::domSetparam::registerElement(dae) );
786 cm->appendChild( mea );
787
788 cm->setMaxOrdinal( 0 );
789 meta->setCMRoot( cm );
790
791 // Add attribute: typename
792 {
793 daeMetaAttribute *ma = new daeMetaAttribute;
794 ma->setName( "typename" );
795 ma->setType( dae.getAtomicTypes().get("xsToken"));
796 ma->setOffset( daeOffsetOf( domGles2_value::domUsertype , attrTypename ));
797 ma->setContainer( meta );
798 ma->setIsRequired( true );
799
800 meta->appendAttribute(ma);
801 }
802
803 meta->setElementSize(sizeof(domGles2_value::domUsertype));
804 meta->validate();
805
806 return meta;
807 }
808
809 daeElementRef
create(DAE & dae)810 domGles2_value::domUsertype::domSetparam::create(DAE& dae)
811 {
812 domGles2_value::domUsertype::domSetparamRef ref = new domGles2_value::domUsertype::domSetparam(dae);
813 return ref;
814 }
815
816
817 daeMetaElement *
registerElement(DAE & dae)818 domGles2_value::domUsertype::domSetparam::registerElement(DAE& dae)
819 {
820 daeMetaElement* meta = dae.getMeta(ID());
821 if ( meta != NULL ) return meta;
822
823 meta = new daeMetaElement(dae);
824 dae.setMeta(ID(), *meta);
825 meta->setName( "setparam" );
826 meta->registerClass(domGles2_value::domUsertype::domSetparam::create);
827
828 meta->setIsInnerClass( true );
829 daeMetaCMPolicy *cm = NULL;
830 daeMetaElementAttribute *mea = NULL;
831 cm = new daeMetaSequence( meta, cm, 0, 1, 1 );
832
833 mea = new daeMetaElementArrayAttribute( meta, cm, 0, 0, -1 );
834 mea->setName( "gles2_value" );
835 mea->setOffset( daeOffsetOf(domGles2_value::domUsertype::domSetparam,elemGles2_value_array) );
836 mea->setElementType( domGles2_value::registerElement(dae) );
837 cm->appendChild( new daeMetaGroup( mea, meta, cm, 0, 0, -1 ) );
838
839 cm->setMaxOrdinal( 0 );
840 meta->setCMRoot( cm );
841
842 // Add attribute: ref
843 {
844 daeMetaAttribute *ma = new daeMetaAttribute;
845 ma->setName( "ref" );
846 ma->setType( dae.getAtomicTypes().get("xsToken"));
847 ma->setOffset( daeOffsetOf( domGles2_value::domUsertype::domSetparam , attrRef ));
848 ma->setContainer( meta );
849 ma->setIsRequired( true );
850
851 meta->appendAttribute(ma);
852 }
853
854 meta->setElementSize(sizeof(domGles2_value::domUsertype::domSetparam));
855 meta->validate();
856
857 return meta;
858 }
859
860 daeElementRef
create(DAE & dae)861 domGles2_value::domArray::create(DAE& dae)
862 {
863 domGles2_value::domArrayRef ref = new domGles2_value::domArray(dae);
864 return ref;
865 }
866
867
868 daeMetaElement *
registerElement(DAE & dae)869 domGles2_value::domArray::registerElement(DAE& dae)
870 {
871 daeMetaElement* meta = dae.getMeta(ID());
872 if ( meta != NULL ) return meta;
873
874 meta = new daeMetaElement(dae);
875 dae.setMeta(ID(), *meta);
876 meta->setName( "array" );
877 meta->registerClass(domGles2_value::domArray::create);
878
879 meta->setIsInnerClass( true );
880 daeMetaCMPolicy *cm = NULL;
881 daeMetaElementAttribute *mea = NULL;
882 cm = new daeMetaSequence( meta, cm, 0, 1, 1 );
883
884 mea = new daeMetaElementArrayAttribute( meta, cm, 0, 1, -1 );
885 mea->setName( "gles2_value" );
886 mea->setOffset( daeOffsetOf(domGles2_value::domArray,elemGles2_value_array) );
887 mea->setElementType( domGles2_value::registerElement(dae) );
888 cm->appendChild( new daeMetaGroup( mea, meta, cm, 0, 1, -1 ) );
889
890 cm->setMaxOrdinal( 0 );
891 meta->setCMRoot( cm );
892
893 // Add attribute: length
894 {
895 daeMetaAttribute *ma = new daeMetaAttribute;
896 ma->setName( "length" );
897 ma->setType( dae.getAtomicTypes().get("xsPositiveInteger"));
898 ma->setOffset( daeOffsetOf( domGles2_value::domArray , attrLength ));
899 ma->setContainer( meta );
900 ma->setIsRequired( true );
901
902 meta->appendAttribute(ma);
903 }
904
905 meta->setElementSize(sizeof(domGles2_value::domArray));
906 meta->validate();
907
908 return meta;
909 }
910
911 } // ColladaDOM150
912