| 131 | } |
| 132 | |
| 133 | const domFx_sampler2D_common_complexType* ColladaUtils::getTextureSampler(const domEffect* effect, |
| 134 | const domCommon_color_or_texture_type_complexType* texture) |
| 135 | { |
| 136 | // <texture texture="new_param_SID">.<newparam>.<sampler2D> |
| 137 | if (texture) { |
| 138 | const domCommon_color_or_texture_type_complexType::domTexture* domTex = texture->getTexture(); |
| 139 | if (domTex && domTex->getTexture()) { |
| 140 | daeSIDResolver resolver(const_cast<domEffect*>(effect), domTex->getTexture()); |
| 141 | const domCommon_newparam_type* param = daeSafeCast<domCommon_newparam_type>(resolver.getElement()); |
| 142 | if (param) |
| 143 | return param->getSampler2D(); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | return NULL; |
| 148 | } |
| 149 | |
| 150 | String ColladaUtils::getSamplerImagePath(const domEffect* effect, |
| 151 | const domFx_sampler2D_common_complexType* sampler2D) |
nothing calls this directly
no test coverage detected