We can probably reverse how push_layout works to avoid using new ImGi_Layout, so it just increments 1 and returns me the layout.
This will require creating all Layout objects at game start and NEVER deallocating them, so push would only return the pointer of the "new" layout in the stack.
New though DOES initialize everything as 0, so need to figure out what we need to then manually initialize as zero.
We can probably reverse how push_layout works to avoid using new ImGi_Layout, so it just increments 1 and returns me the layout.
This will require creating all Layout objects at game start and NEVER deallocating them, so push would only return the pointer of the "new" layout in the stack.
New though DOES initialize everything as 0, so need to figure out what we need to then manually initialize as zero.