![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
Per-slot alive flag (bit 31) and generation counter (bits 0-30) in one uint32_t. More...
#include <types.h>
Public Member Functions | |
| void | setAlive (bool alive) |
| Set the alive/dead status, leaving the generation untouched. | |
| void | bumpGeneration () |
| Increment the generation counter, preserving the alive bit. | |
Per-slot alive flag (bit 31) and generation counter (bits 0-30) in one uint32_t.
|
inline |
Set the alive/dead status, leaving the generation untouched.
| alive | True marks the slot alive, false dead. |
|
inline |
Increment the generation counter, preserving the alive bit.
Called on each removal, staling every handle minted before. Wraps at 31 bits.