light/Sandbox/src/SandboxApp.cpp

24 lines
366 B
C++
Raw Normal View History

2021-05-20 10:21:08 +04:30
#include <LightEngine.h>
2021-05-27 10:41:32 +04:30
#include "SandboxLayer.h"
2021-05-20 10:21:08 +04:30
class Sandbox : public Light::Application
{
2021-05-21 10:55:39 +04:30
public:
Sandbox()
{
LT_CLIENT_TRACE("Sandbox::Sandbox");
2021-05-27 10:41:32 +04:30
Light::LayerStack::AttachLayer(new SandboxLayer("SandboxLayer"));
2021-05-21 10:55:39 +04:30
}
~Sandbox()
{
LT_CLIENT_TRACE("Sandbox::~Sandbox");
}
2021-05-20 10:21:08 +04:30
};
Light::Application* Light::CreateApplication()
{
return new Sandbox();
}