feat: replaced demo window with some basic DearImGui code
This commit is contained in:
parent
151c58ff7b
commit
111d19edb6
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue