MCPcopy Create free account
hub / github.com/RenderKit/embree / load

Method load

tutorials/common/scenegraph/texture.cpp:83–90  ·  view source on GitHub ↗

! read png texture from disk */

Source from the content-addressed store, hash-verified

81
82 /*! read png texture from disk */
83 std::shared_ptr<Texture> Texture::load(const FileName& fileName)
84 {
85 if (texture_cache.find(fileName.str()) != texture_cache.end())
86 return texture_cache[fileName.str()];
87
88 std::shared_ptr<Texture> tex(new Texture(loadImage(fileName),fileName));
89 return texture_cache[fileName.str()] = tex;
90 }
91}

Callers 1

run_buildMethod · 0.45

Calls 4

loadImageFunction · 0.85
findMethod · 0.45
strMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected