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

Method get

src/world/material_manager.cpp:126–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126Material *MaterialManager::get(const MaterialResource *resource)
127{
128 CE_ASSERT(hash_map::has(_materials, resource), "Material not found");
129 return hash_map::get(_materials, resource, (Material *)NULL);
130}
131
132void MaterialManager::reload_textures(const TextureResource *old_resource, const TextureResource *new_resource)
133{

Callers 15

spawn_unitMethod · 0.45
load_levelMethod · 0.45
image_3d_uvMethod · 0.45
text_3dMethod · 0.45
textMethod · 0.45
text_extentsMethod · 0.45
materialMethod · 0.45
set_textureMethod · 0.45
PhysicsWorldImplMethod · 0.45
allocateMethod · 0.45
create_instancesMethod · 0.45
updateMethod · 0.45

Calls 2

getFunction · 0.85
hasFunction · 0.70

Tested by

no test coverage detected