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