added limited support for COLLADA_DOM. Will need to add jam/msvcgen build support.

This commit is contained in:
ejcoumans
2006-06-18 05:31:52 +00:00
parent 1a0f411f92
commit 6fc2e100f5
388 changed files with 129147 additions and 8 deletions

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing permissions and limitations under the
* License.
*/
#include <dae/daeDom.h>
#include <dom/domLinestrips.h>
daeElementRef
domLinestrips::create(daeInt bytes)
{
domLinestripsRef ref = new(bytes) domLinestrips;
return ref;
}
daeMetaElement *
domLinestrips::registerElement()
{
if ( _Meta != NULL ) return _Meta;
_Meta = new daeMetaElement;
_Meta->setName( "linestrips" );
_Meta->setStaticPointerAddress(&domLinestrips::_Meta);
_Meta->registerConstructor(domLinestrips::create);
// Add elements: input, p, extra
_Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domLinestrips,elemInput_array),"input");
_Meta->appendArrayElement(domP::registerElement(),daeOffsetOf(domLinestrips,elemP_array));
_Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLinestrips,elemExtra_array));
// Add attribute: name
{
daeMetaAttribute *ma = new daeMetaAttribute;
ma->setName( "name" );
ma->setType( daeAtomicType::get("xsNCName"));
ma->setOffset( daeOffsetOf( domLinestrips , attrName ));
ma->setContainer( _Meta );
_Meta->appendAttribute(ma);
}
// Add attribute: count
{
daeMetaAttribute *ma = new daeMetaAttribute;
ma->setName( "count" );
ma->setType( daeAtomicType::get("Uint"));
ma->setOffset( daeOffsetOf( domLinestrips , attrCount ));
ma->setContainer( _Meta );
ma->setIsRequired( true );
_Meta->appendAttribute(ma);
}
// Add attribute: material
{
daeMetaAttribute *ma = new daeMetaAttribute;
ma->setName( "material" );
ma->setType( daeAtomicType::get("xsNCName"));
ma->setOffset( daeOffsetOf( domLinestrips , attrMaterial ));
ma->setContainer( _Meta );
_Meta->appendAttribute(ma);
}
_Meta->setElementSize(sizeof(domLinestrips));
_Meta->validate();
return _Meta;
}
daeMetaElement * domLinestrips::_Meta = NULL;