| 56 | } |
| 57 | |
| 58 | static void xUpdateCull_MakeInactive(xUpdateCullMgr* m, xUpdateCullEnt* e) |
| 59 | { |
| 60 | U32 eIndex = e->index; |
| 61 | U32 mEntActive = m->entActive; |
| 62 | |
| 63 | if (eIndex < mEntActive) |
| 64 | { |
| 65 | mEntActive--; |
| 66 | if (eIndex != mEntActive) |
| 67 | { |
| 68 | xUpdateCull_Swap(m, eIndex, mEntActive); |
| 69 | } |
| 70 | if (m->deactivateCB != NULL) |
| 71 | { |
| 72 | m->deactivateCB(m->ent[e->index]); |
| 73 | } |
| 74 | m->entActive--; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | U32 xUpdateCull_AlwaysTrueCB(void* ent, void* cbdata) |
| 79 | { |
no test coverage detected