SpiecsEngine
 
Loading...
Searching...
No Matches

◆ IterWorldCompWithBreakWithRange() [2/2]

template<typename T , typename F >
void Spices::Renderer::IterWorldCompWithBreakWithRange ( FrameInfo & frameInfo,
const std::vector< uint32_t > & ranges,
uint32_t floor,
uint32_t ceil,
F func )
inlineprotectedinherited

Iterator the specific Component in World With break With range.

Template Parameters
TThe specific Component class.
Parameters
[in]frameInfoThe current frame data.
[in]rangesEntities View ranges.
[in]floorranges floor.
[in]ceilranges ceil.
[in]funcThe function pointer that need to execute during this function.

Iter use view, not group.

Attention
Group result nullptr here.

This function defined how we use these components.

Parameters
[in]eentityid.
[in]transCompTransformComponent.
[in]tCompTComponent.
Returns
Returns true if need break for for loop.

Definition at line 2428 of file Renderer.h.

2429 {
2431
2436 frameInfo.m_World->ViewComponent<T>(ranges, floor, ceil, [&](auto e, auto& tComp) {
2437 auto& transComp = frameInfo.m_World->GetRegistry().get<TransformComponent>(e);
2438
2446 return func(static_cast<int>(e), transComp, tComp);
2447 });
2448 }
#define SPICES_PROFILE_ZONE
dy>