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

Function remove_culled

src/world/render_world.cpp:197–208  ·  view source on GitHub ↗

Returns the number of objects that passed culling test.

Source from the content-addressed store, hash-verified

195
196 /// Returns the number of objects that passed culling test.
197 static u32 remove_culled(CullingSet &set)
198 {
199 array::clear(set.render);
200 u32 num = array::size(set.id);
201
202 for (u32 i = 0; i < num; ++i) {
203 if (set.visible[i] != 0)
204 array::push_back(set.render, i);
205 }
206
207 return array::size(set.render);
208 }
209
210} // namespace culling_set
211

Callers 1

renderMethod · 0.85

Calls 2

clearFunction · 0.50
sizeFunction · 0.50

Tested by

no test coverage detected