More config options, menu bar and global getter for QuickApp.

This commit is contained in:
2025-03-02 19:33:52 +01:00
parent 7a18cce60c
commit 75773778e9
3 changed files with 50 additions and 7 deletions

View File

@@ -7,6 +7,18 @@ namespace
{
void render()
{
if (ImGui::BeginMenuBar())
{
if (ImGui::BeginMenu("File"))
{
if (ImGui::MenuItem("Quit"))
{
raid::QuickApp::get().requestQuit();
}
ImGui::EndMenu();
}
ImGui::EndMenuBar();
}
ImGui::Text("hi");
ImGui::Begin("Test");
@@ -20,6 +32,8 @@ int main(int argc, char* argv[])
return raid::runQuick(argc, argv, {
.callbacks = {
.render = &render
}
},
.folderName = "raid_test_app",
.mainWindowFlags = raid::DEFAULT_MAIN_WINDOW_FLAGS | ImGuiWindowFlags_MenuBar
});
}