| 37 | } |
| 38 | |
| 39 | static void xUpdateCull_MakeActive(xUpdateCullMgr* m, xUpdateCullEnt* e) |
| 40 | { |
| 41 | U32 eIndex = e->index; |
| 42 | U32 mEntActive = m->entActive; |
| 43 | |
| 44 | if (eIndex >= mEntActive) |
| 45 | { |
| 46 | if (eIndex != mEntActive) |
| 47 | { |
| 48 | xUpdateCull_Swap(m, eIndex, mEntActive); |
| 49 | } |
| 50 | if (m->activateCB != NULL) |
| 51 | { |
| 52 | m->activateCB(m->ent[e->index]); |
| 53 | } |
| 54 | m->entActive++; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | static void xUpdateCull_MakeInactive(xUpdateCullMgr* m, xUpdateCullEnt* e) |
| 59 | { |
no test coverage detected