40 lines
741 B
C++
40 lines
741 B
C++
|
|
#include "raid/raid.hpp"
|
|
|
|
#include <imgui.h>
|
|
|
|
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");
|
|
ImGui::Text("Test Content");
|
|
ImGui::End();
|
|
}
|
|
}
|
|
|
|
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
|
|
});
|
|
}
|