MCPcopy Create free account
hub / github.com/cinder/Cinder / SourceModsContext

Method SourceModsContext

src/cinder/GeomIo.cpp:4953–4963  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////////////////////////////////// SourceModsContext

Source from the content-addressed store, hash-verified

4951//////////////////////////////////////////////////////////////////////////////////////////////////////////////
4952// SourceModsContext
4953SourceModsContext::SourceModsContext( const SourceMods *sourceMods )
4954 : mNumIndices( 0 ), mNumVertices( 0 ), mAttribMask( nullptr ), mPrimitive( NUM_PRIMITIVES )
4955{
4956 mSource = sourceMods->getSource();
4957
4958 if( ! sourceMods->mParamsStack.empty() ) // this allows for a non-indexed Source to have never specified the primitive via copyIndices()
4959 mPrimitive = sourceMods->mParamsStack.front().mPrimitive;
4960
4961 for( auto &modifier : sourceMods->mModifiers )
4962 mModiferStack.push_back( modifier.get() );
4963}
4964
4965SourceModsContext::SourceModsContext()
4966 : mNumIndices( 0 ), mNumVertices( 0 ), mSource( nullptr ), mAttribMask( nullptr ), mPrimitive( NUM_PRIMITIVES )

Callers

nothing calls this directly

Calls 5

getSourceMethod · 0.80
emptyMethod · 0.45
frontMethod · 0.45
push_backMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected