---------------------------------------------------------------
| 2415 | |
| 2416 | //--------------------------------------------------------------- |
| 2417 | void AnimationExporter::exportSampler ( const Animation & animation ) |
| 2418 | { |
| 2419 | |
| 2420 | if ( animation.hasAnyInputFlagsSet() ) |
| 2421 | { |
| 2422 | String baseId = getBaseId ( animation ); |
| 2423 | |
| 2424 | LibraryAnimations::Sampler sampler(mSW, baseId + SAMPLER_ID_SUFFIX ); |
| 2425 | |
| 2426 | if ( animation.inputFlagSet(Animation::INPUT) ) |
| 2427 | sampler.addInput ( COLLADASW::InputSemantic::INPUT, "#" + baseId + INPUT_SOURCE_ID_SUFFIX ); |
| 2428 | |
| 2429 | if ( animation.inputFlagSet(Animation::OUTPUT) ) |
| 2430 | sampler.addInput ( COLLADASW::InputSemantic::OUTPUT, "#" + baseId + OUTPUT_SOURCE_ID_SUFFIX ); |
| 2431 | |
| 2432 | if ( animation.inputFlagSet(Animation::IN_TANGENT) ) |
| 2433 | sampler.addInput ( COLLADASW::InputSemantic::IN_TANGENT, "#" + baseId + INTANGENT_SOURCE_ID_SUFFIX ); |
| 2434 | |
| 2435 | if ( animation.inputFlagSet(Animation::OUT_TANGENT) ) |
| 2436 | sampler.addInput ( COLLADASW::InputSemantic::OUT_TANGENT, "#" + baseId + OUTTANGENT_SOURCE_ID_SUFFIX ); |
| 2437 | |
| 2438 | if ( animation.inputFlagSet(Animation::INTERPOLATION) ) |
| 2439 | sampler.addInput ( COLLADASW::InputSemantic::INTERPOLATION, "#" + baseId + INTERPOLATION_SOURCE_ID_SUFFIX ); |
| 2440 | |
| 2441 | addSampler ( sampler ); |
| 2442 | } |
| 2443 | } |
| 2444 | |
| 2445 | //--------------------------------------------------------------- |
| 2446 | void AnimationExporter::exportChannel ( const Animation & animation ) |
nothing calls this directly
no test coverage detected