MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / hasTextureForPart

Method hasTextureForPart

testbed/opengl-framework/src/Mesh.h:359–361  ·  view source on GitHub ↗

Return true if the mesh has a texture for a given part of the mesh and if it also have texture coordinates

Source from the content-addressed store, hash-verified

357// Return true if the mesh has a texture for a given part of the mesh and if it
358// also have texture coordinates
359inline bool Mesh::hasTextureForPart(uint part) const {
360 return hasUVTextureCoordinates() && mTextures.count(part);
361}
362
363// Return true if the mesh has a texture (and texture coordinates) for at least one
364// part of the mesh

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected