| 74 | } |
| 75 | |
| 76 | static const Data *findChannel( const IECoreImage::ImagePrimitive::ChannelMap &channels, const char **names ) |
| 77 | { |
| 78 | while( *names != nullptr ) |
| 79 | { |
| 80 | const auto it = channels.find( *names ); |
| 81 | if( it != channels.end() ) |
| 82 | { |
| 83 | return it->second.get(); |
| 84 | } |
| 85 | names++; |
| 86 | } |
| 87 | return nullptr; |
| 88 | } |
| 89 | |
| 90 | ColorTexture::ColorTexture( const IECoreImage::ImagePrimitive *image ) |
| 91 | { |