light/modules/mirror/src/mirror.cpp

36 lines
564 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
2025-07-06 14:02:50 +03:30
auto properties = Light::WindowProperties {
.title = "Mirror",
.size = glm::uvec2(1280u, 720u),
.vsync = true,
};
2025-07-05 13:28:41 +03:30
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
}
};
2025-07-06 14:02:50 +03:30
auto create_application() -> Application *
2025-07-05 13:28:41 +03:30
{
return new Mirror();
}
} // namespace Light