blob: 9ab86de58d90556b0849da2fa5c5bb0f92c868ec (
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
|
#include <dae.h>
#include <dae/daeDom.h>
#include <1.5/dom/domGles_texcombiner_command_rgb.h>
#include <dae/daeMetaCMPolicy.h>
#include <dae/daeMetaSequence.h>
#include <dae/daeMetaChoice.h>
#include <dae/daeMetaGroup.h>
#include <dae/daeMetaAny.h>
#include <dae/daeMetaElementAttribute.h>
namespace ColladaDOM150 {
daeElementRef
domGles_texcombiner_command_rgb::create(DAE& dae)
{
domGles_texcombiner_command_rgbRef ref = new domGles_texcombiner_command_rgb(dae);
return ref;
}
daeMetaElement *
domGles_texcombiner_command_rgb::registerElement(DAE& dae)
{
daeMetaElement* meta = dae.getMeta(ID());
if ( meta != NULL ) return meta;
meta = new daeMetaElement(dae);
dae.setMeta(ID(), *meta);
meta->setName( "gles_texcombiner_command_rgb" );
meta->registerClass(domGles_texcombiner_command_rgb::create);
daeMetaCMPolicy *cm = NULL;
daeMetaElementAttribute *mea = NULL;
cm = new daeMetaSequence( meta, cm, 0, 1, 1 );
mea = new daeMetaElementArrayAttribute( meta, cm, 0, 1, 3 );
mea->setName( "argument" );
mea->setOffset( daeOffsetOf(domGles_texcombiner_command_rgb,elemArgument_array) );
mea->setElementType( domGles_texcombiner_argument_rgb::registerElement(dae) );
cm->appendChild( mea );
cm->setMaxOrdinal( 0 );
meta->setCMRoot( cm );
// Add attribute: operator
{
daeMetaAttribute *ma = new daeMetaAttribute;
ma->setName( "operator" );
ma->setType( dae.getAtomicTypes().get("Gles_texcombiner_operator_rgb"));
ma->setOffset( daeOffsetOf( domGles_texcombiner_command_rgb , attrOperator ));
ma->setContainer( meta );
meta->appendAttribute(ma);
}
// Add attribute: scale
{
daeMetaAttribute *ma = new daeMetaAttribute;
ma->setName( "scale" );
ma->setType( dae.getAtomicTypes().get("xsFloat"));
ma->setOffset( daeOffsetOf( domGles_texcombiner_command_rgb , attrScale ));
ma->setContainer( meta );
ma->setIsRequired( false );
meta->appendAttribute(ma);
}
meta->setElementSize(sizeof(domGles_texcombiner_command_rgb));
meta->validate();
return meta;
}
} // ColladaDOM150
|