From 518ca85c853fbde13870cdc536b82f9d8cc3f60e Mon Sep 17 00:00:00 2001 From: anulax1225 Date: Wed, 19 Jun 2024 08:30:51 +0200 Subject: [PATCH] Cleaned up --- examples/test_imgui.cpp | 32 ++++++++++++++++++++++++ examples/{sandbox.cpp => test_layer.cpp} | 0 2 files changed, 32 insertions(+) create mode 100644 examples/test_imgui.cpp rename examples/{sandbox.cpp => test_layer.cpp} (100%) diff --git a/examples/test_imgui.cpp b/examples/test_imgui.cpp new file mode 100644 index 0000000..1b8c631 --- /dev/null +++ b/examples/test_imgui.cpp @@ -0,0 +1,32 @@ +#include +#include +#include +#include + +class TestLayer : public Bk::Layer +{ + public: + TestLayer() + : Layer("Test") {} + void imgui_render() override + { + static bool show = true; + ImGui::ShowDemoWindow(&show); + } + +}; + +class Sandbox : public Bk::Application +{ + public: + Sandbox() + { + push_layer(new TestLayer()); + } +}; + + + +std::unique_ptr Bk::create_app() { + return std::unique_ptr(new Sandbox()); +} \ No newline at end of file diff --git a/examples/sandbox.cpp b/examples/test_layer.cpp similarity index 100% rename from examples/sandbox.cpp rename to examples/test_layer.cpp