MCPcopy Create free account
hub / github.com/crownengine/crown / get

Function get

src/resource/mesh.cpp:624–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622namespace mesh_cache
623{
624 Mesh *get(MeshCache &cache, const char *path)
625 {
626 StringId64 path_id(path);
627
628 ListNode *cur;
629 list_for_each(cur, &cache._meshes)
630 {
631 Mesh *mesh = (Mesh *)container_of(cur, Mesh, _cache_node);
632
633 if (mesh->_path == path_id)
634 return mesh;
635 }
636
637 return NULL;
638 }
639
640 void add(MeshCache &cache, Mesh *mesh)
641 {

Callers 15

consumeWhiteSpaceMethod · 0.85
consumeCommentMethod · 0.85
scanVersionMethod · 0.85
test_hash_mapFunction · 0.85
watchMethod · 0.85
full_pathMethod · 0.85
watchMethod · 0.85
full_pathMethod · 0.85
try_loadMethod · 0.85
unloadMethod · 0.85
reloadMethod · 0.85
getMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_hash_mapFunction · 0.68