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

Method addName

COLLADAStreamWriter/src/COLLADASWShader.cpp:55–62  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

53
54 // ----------------------------
55 void Shader::addName( const String& name, const String& source/*="" */ )
56 {
57 mSW->openElement ( CSWC::CSW_ELEMENT_NAME );
58 if ( !source.empty() )
59 mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_SOURCE, source );
60 mSW->appendText ( name );
61 mSW->closeElement ();
62 }
63
64 // ----------------------------
65 const String& Shader::getStageNameByScopeAndStage (

Callers 1

Calls 5

openElementMethod · 0.80
appendTextMethod · 0.80
emptyMethod · 0.45
appendAttributeMethod · 0.45
closeElementMethod · 0.45

Tested by

no test coverage detected