add layers and glad

This commit is contained in:
lauchmelder 2025-01-05 15:53:52 +01:00
parent 8d7a2e3c1f
commit 996c583520
19 changed files with 6028 additions and 14 deletions

View file

@ -1,11 +1,30 @@
#include <memory>
#include <quark.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);
}
};
std::unique_ptr<qk::Application> qk::CreateApplication() {