MCPcopy Create free account
hub / github.com/assimp/assimp / fillTexture

Method fillTexture

code/AssetLib/FBX/FBXMaterial.cpp:259–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257LayeredTexture::~LayeredTexture() = default;
258
259void LayeredTexture::fillTexture(const Document& doc) {
260 const std::vector<const Connection*>& conns = doc.GetConnectionsByDestinationSequenced(ID());
261 for(size_t i = 0; i < conns.size();++i) {
262 const Connection* con = conns.at(i);
263
264 const Object* const ob = con->SourceObject();
265 if (nullptr == ob) {
266 DOMWarning("failed to read source object for texture link, ignoring",&element);
267 continue;
268 }
269
270 const Texture* const tex = dynamic_cast<const Texture*>(ob);
271
272 textures.push_back(tex);
273 }
274}
275
276// ------------------------------------------------------------------------------------------------
277Video::Video(uint64_t id, const Element &element, const Document &doc, const std::string &name) :

Callers 1

MaterialMethod · 0.80

Calls 7

IDClass · 0.85
DOMWarningFunction · 0.85
atMethod · 0.80
SourceObjectMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected