light/modules/mirror/src/mirror.cpp

36 lines
560 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>
2025-07-11 00:05:48 +03:30
namespace lt {
2025-07-05 13:28:41 +03:30
2025-07-07 15:13:05 +03:30
class Mirror: public Application
2025-07-05 13:28:41 +03:30
{
public:
Mirror()
{
// Set window properties
2025-07-07 15:13:05 +03:30
auto properties = WindowProperties {
2025-07-06 14:02:50 +03:30
.title = "Mirror",
.size = glm::uvec2(1280u, 720u),
.vsync = true,
};
2025-07-05 13:28:41 +03:30
2025-07-07 15:13:05 +03:30
get_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-07 15:13:05 +03:30
auto create_application() -> Scope<Application>
2025-07-05 13:28:41 +03:30
{
2025-07-07 15:13:05 +03:30
return create_scope<Mirror>();
2025-07-05 13:28:41 +03:30
}
2025-07-11 00:05:48 +03:30
} // namespace lt