34 lines
494 B
C++
34 lines
494 B
C++
#include <quark.hpp>
|
|
#include "quark/imgui/ImGuiLayer.hpp"
|
|
|
|
class ExampleLayer :
|
|
public qk::Layer
|
|
{
|
|
public:
|
|
ExampleLayer() :
|
|
Layer("Example")
|
|
{ }
|
|
|
|
void OnUpdate() override {
|
|
// QK_TRACE("ExampleLayer::Update");
|
|
}
|
|
|
|
void OnEvent(qk::Event& event) override {
|
|
QK_TRACE(event);
|
|
}
|
|
};
|
|
|
|
class Sandbox :
|
|
public qk::Application
|
|
{
|
|
public:
|
|
Sandbox() {
|
|
PushLayer(new ExampleLayer);
|
|
PushOverlay(new qk::ImGuiLayer);
|
|
}
|
|
};
|
|
|
|
qk::Application* qk::CreateApplication() {
|
|
return new Sandbox;
|
|
}
|