light/modules/mirror/src/mirror.cpp

35 lines
577 B
C++
Raw Normal View History

2025-07-05 13:28:41 +03:30
#define LIGHT_ENTRY_POINT
//
#include <mirror/editor_layer.hpp>
2025-07-11 01:42:56 +03:30
#include <window/window.hpp>
2025-07-05 13:28:41 +03:30
//
#include <app/application.hpp>
#include <app/entrypoint.hpp>
#include <app/layer_stack.hpp>
2025-07-05 13:28:41 +03:30
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()
{
2025-07-11 00:56:57 +03:30
get_window().set_properties(WindowProperties {
.title = "Mirror",
.size = glm::uvec2(1280u, 720u),
.vsync = true,
});
2025-07-05 13:28:41 +03:30
2025-07-11 00:56:57 +03:30
get_layer_stack().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