light/modules/mirror/src/mirror.cpp

35 lines
568 B
C++
Raw Normal View History

2025-07-05 13:28:41 +03:30
#define LIGHT_ENTRY_POINT
//
#include <mirror/editor_layer.hpp>
//
#include <engine/engine.hpp>
namespace Light {
class Mirror: public Light::Application
{
public:
Mirror()
{
// Set window properties
Light::WindowProperties properties;
properties.title = "Mirror";
properties.size = glm::uvec2(1280u, 720u);
properties.vsync = true;
m_window->set_properties(properties);
2025-07-05 13:28:41 +03:30
// Attach the sandbox layer
LayerStack::emplace_layer<EditorLayer>(("MirrorLayer"));
2025-07-05 13:28:41 +03:30
}
};
Application *CreateApplication()
{
return new Mirror();
}
} // namespace Light