MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / for_each

Function for_each

src/SB/Core/x/xHud.cpp:383–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 };
382
383 template <class F> void for_each(U8 widget_type, U32 type_size, F f)
384 {
385 U32 count = globals.sceneCur->baseCount[widget_type];
386 U8* list = (U8*)globals.sceneCur->baseList[widget_type];
387 for (int i = 0; i < count; ++i)
388 {
389 f(*(widget*)(list + i * type_size));
390 }
391 }
392
393 void render_one_model(xModelInstance& model, F32 alpha, const basic_rect<F32>& rect,
394 const xVec3& from, const xVec3& to, const xMat4x3& frame)

Callers 4

setup_allMethod · 0.70
render_allMethod · 0.70
update_allMethod · 0.70
disable_allMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected