add layers and glad
This commit is contained in:
parent
8d7a2e3c1f
commit
996c583520
19 changed files with 6028 additions and 14 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue