add basic save and load

add menu
- save
- load
- demo on/off
- close + popup

#9 #10
This commit is contained in:
2025-11-19 15:49:35 +01:00
parent 11110f23c9
commit b1de78bfe0
4 changed files with 141 additions and 8 deletions
+3 -1
View File
@@ -349,6 +349,9 @@ static void FramePresent(ImGui_ImplVulkanH_Window* wd)
wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->SemaphoreCount; // Now we can use the next set of semaphores
}
bool should_exit = false;
bool show_demo_window = false;
// Main code
int main(int, char**)
{
@@ -443,7 +446,6 @@ int main(int, char**)
//IM_ASSERT(font != nullptr);
// Our state
bool show_demo_window = true;
bool show_another_window = false;
ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);