///////////////////////////////////////////////////////////////////////////////////////////////////////// SourceModsContext
| 4951 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 4952 | // SourceModsContext |
| 4953 | SourceModsContext::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 | |
| 4965 | SourceModsContext::SourceModsContext() |
| 4966 | : mNumIndices( 0 ), mNumVertices( 0 ), mSource( nullptr ), mAttribMask( nullptr ), mPrimitive( NUM_PRIMITIVES ) |