41 lines
		
	
	
		
			781 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			781 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",
 | 
						|
        .windowTitle = "RAID Test App",
 | 
						|
        .mainWindowFlags = raid::DEFAULT_MAIN_WINDOW_FLAGS | ImGuiWindowFlags_MenuBar
 | 
						|
    });
 | 
						|
}
 |