| 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) |
no outgoing calls
no test coverage detected