light/modules/mirror/src/mirror.cpp

33 lines
597 B
C++
Raw Normal View History

#include <app/application.hpp>
#include <app/entrypoint.hpp>
#include <app/layer_stack.hpp>
#include <math/vec2.hpp>
#include <mirror/editor_layer.hpp>
#include <window/window.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 14:05:59 +03:30
get_window().set_properties(
Window::Properties {
2025-07-11 14:05:59 +03:30
.title = "Mirror",
.size = math::uvec2(1280u, 720u),
2025-07-11 14:05:59 +03:30
.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