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

Method index

src/world/render_world.cpp:2224–2232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2222}
2223
2224u32 RenderWorld::MeshManager::index(MeshId mesh)
2225{
2226 const u32 slot = mesh.i & MESH_INDEX_MASK;
2227 CE_ASSERT(slot < array::size(_indices), "Index out of bounds");
2228
2229 Index &idx = _indices[slot];
2230 CE_ASSERT(idx.id.i == mesh.i, "Invalid mesh");
2231 return idx.index;
2232}
2233
2234void RenderWorld::MeshManager::set_instance_data(u32 ii, SceneGraph &scene_graph)
2235{

Callers 13

mesh_set_geometryMethod · 0.45
mesh_set_skeletonMethod · 0.45
mesh_materialMethod · 0.45
mesh_set_materialMethod · 0.45
mesh_set_visibleMethod · 0.45
mesh_set_cast_shadowsMethod · 0.45
mesh_obbMethod · 0.45
mesh_cast_rayMethod · 0.45
update_transformsMethod · 0.45
renderMethod · 0.45
create_instancesMethod · 0.45
update_boundsMethod · 0.45

Calls 1

sizeFunction · 0.50

Tested by

no test coverage detected