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

Method getTexture

tutorials/common/scenegraph/xml_loader.cpp:185–189  ·  view source on GitHub ↗

! Extracts a named texture out of the container. */

Source from the content-addressed store, hash-verified

183
184 /*! Extracts a named texture out of the container. */
185 std::shared_ptr<Texture> getTexture(const char* name) const {
186 std::map<std::string,Variant>::const_iterator i = m.find(name);
187 if (i == m.end() || (*i).second.type != Variant::TEXTURE) return std::shared_ptr<Texture>();
188 return (*i).second.getTexture();
189 }
190
191 /*! Adds a new named element to the container. */
192 void add(const std::string& name, Variant data) {

Callers 1

addMaterialMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected