feat: replaced demo window with some basic DearImGui code

This commit is contained in:
Sara Gerretsen 2025-09-04 20:17:58 +02:00
parent 151c58ff7b
commit 111d19edb6

View file

@ -3,6 +3,7 @@
#include <SFML/Window.hpp>
#include <imgui-SFML.h>
#include <imgui.h>
#include <print>
void configure(AppConfig &config) {
config.window_title = "MYPROJECT";
@ -21,5 +22,10 @@ void draw_scene(sf::RenderTarget &target) {
void draw_gui() {
// draw your GUI
ImGui::ShowDemoWindow();
if (ImGui::Begin("MyWindow")) {
if (ImGui::Button("My Button")) {
std::println("Yipeeee");
}
ImGui::End();
}
}