main
anulax1225 ago%!(EXTRA string=12 months)
parent b61777f5d7
commit 518ca85c85
  1. 32
      examples/test_imgui.cpp
  2. 0
      examples/test_layer.cpp

@ -0,0 +1,32 @@
#include <memory>
#include <utility>
#include <string>
#include <bakara.h>
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::Application> Bk::create_app() {
return std::unique_ptr<Bk::Application>(new Sandbox());
}
Loading…
Cancel
Save