Iterator the specific Component in World With range.
- Template Parameters
-
- Parameters
-
| [in] | frameInfo | The current frame data. |
| [in] | ranges | Entities View ranges. |
| [in] | floor | ranges floor. |
| [in] | ceil | ranges ceil. |
| [in] | func | The 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
-
- Returns
- Returns true if need break for for loop.
Definition at line 2380 of file Renderer.h.
2381 {
2383
2388 frameInfo.m_World->ViewComponent<
T>(ranges, floor, ceil, [&](
auto e,
auto& tComp) {
2389 auto& transComp = frameInfo.m_World->GetRegistry().get<TransformComponent>(
e);
2390
2398 func(static_cast<int>(e), transComp, tComp);
2399
2400 return false;
2401 });
2402 }
#define SPICES_PROFILE_ZONE