MCPcopy Create free account
hub / github.com/ImageEngine/cortex / findChannel

Function findChannel

src/IECoreGL/ColorTexture.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static 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
90ColorTexture::ColorTexture( const IECoreImage::ImagePrimitive *image )
91{

Callers 1

constructMethod · 0.85

Calls 3

findMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected