MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / add

Method add

COLLADAStreamWriter/src/COLLADASWInputList.cpp:19–36  ·  view source on GitHub ↗

---------------------------------------------------------------

Source from the content-addressed store, hash-verified

17
18 //---------------------------------------------------------------
19 void InputList::add() const
20 {
21 // write inputs
22 for ( List::const_iterator it = mList.begin(); it != mList.end(); ++it )
23 {
24 mSW->openElement ( CSWC::CSW_ELEMENT_INPUT );
25 mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_SEMANTIC, getSemanticString ( it->getSemantic() ) );
26 mSW->appendURIAttribute ( CSWC::CSW_ATTRIBUTE_SOURCE, it->getSource() );
27
28 if ( it->getOffset() >= 0 )
29 mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_OFFSET, ( unsigned long ) it->getOffset() );
30
31 if ( it->getSet() >= 0 )
32 mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_SET, ( unsigned long ) it->getSet() );
33
34 mSW->closeElement();
35 }
36 }
37
38
39 //---------------------------------------------------------------

Callers

nothing calls this directly

Calls 10

openElementMethod · 0.80
appendURIAttributeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
appendAttributeMethod · 0.45
getSemanticMethod · 0.45
getSourceMethod · 0.45
getOffsetMethod · 0.45
getSetMethod · 0.45
closeElementMethod · 0.45

Tested by

no test coverage detected