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
|
|
|
|
2025-07-05 15:36:53 +03:30
|
|
|
m_window->set_properties(properties);
|
2025-07-05 13:28:41 +03:30
|
|
|
|
|
|
|
// Attach the sandbox layer
|
2025-07-05 15:36:53 +03:30
|
|
|
LayerStack::emplace_layer<EditorLayer>(("MirrorLayer"));
|
2025-07-05 13:28:41 +03:30
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2025-07-06 15:10:34 +03:30
|
|
|
auto create_application() -> Light::Scope<Application>
|
2025-07-05 13:28:41 +03:30
|
|
|
{
|
2025-07-06 15:10:34 +03:30
|
|
|
return Light::create_scope<Mirror>();
|
2025-07-05 13:28:41 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Light
|