2021-05-27 18:55:30 +04:30
|
|
|
#define LIGHT_ENTRY_POINT
|
2021-05-20 10:21:08 +04:30
|
|
|
#include <LightEngine.h>
|
2021-06-26 13:09:11 +04:30
|
|
|
#include <EntryPoint.h>
|
2021-05-20 10:21:08 +04:30
|
|
|
|
2021-06-14 10:01:28 +04:30
|
|
|
#include "SandboxLayer.h"
|
2021-05-27 10:41:32 +04:30
|
|
|
|
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
|
|
|
|
2021-06-14 10:01:28 +04:30
|
|
|
// Set window properties
|
|
|
|
Light::WindowProperties properties;
|
|
|
|
properties.title = "Sandbox";
|
2021-06-15 22:17:28 +04:30
|
|
|
properties.size = glm::uvec2(800u, 600u);
|
2021-06-14 10:01:28 +04:30
|
|
|
properties.vsync = true;
|
|
|
|
|
|
|
|
m_Window->SetProperties(properties);
|
|
|
|
|
|
|
|
// Attach the sandbox layer
|
2021-05-27 10:41:32 +04:30
|
|
|
Light::LayerStack::AttachLayer(new SandboxLayer("SandboxLayer"));
|
2021-05-21 10:55:39 +04:30
|
|
|
}
|
2021-07-01 19:25:46 +04:30
|
|
|
|
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();
|
|
|
|
}
|