MCPcopy Create free account
hub / github.com/cinder/Cinder / findFullPath

Method findFullPath

src/cinder/gl/ShaderPreprocessor.cpp:431–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431fs::path ShaderPreprocessor::findFullPath( const fs::path &includePath, const fs::path &currentDirectory )
432{
433 auto fullPath = currentDirectory / includePath;
434 if( fs::exists( fullPath ) )
435 return fs::canonical( fullPath );
436
437 for( auto dirIt = mSearchDirectories.rbegin(); dirIt != mSearchDirectories.rend(); ++dirIt ) {
438 fullPath = *dirIt / includePath;
439 if( fs::exists( fullPath ) )
440 return fs::canonical( fullPath );
441 }
442
443 return {};
444}
445
446} } // namespace cinder::gl

Callers

nothing calls this directly

Calls 4

canonicalFunction · 0.85
rbeginMethod · 0.80
rendMethod · 0.80
existsFunction · 0.50

Tested by

no test coverage detected