4#include <SDL2/SDL_video.h>
5#include <spdlog/spdlog.h>
7#include <boost/describe/enum.hpp>
8#include <vulkan/vulkan.hpp>
16 SDL_VULKAN_EXTENSION);
20 static auto create(std::string
const &application_name)
33 auto get_size() -> std::pair<int32_t, int32_t> {
35 SDL_GetWindowSize(window_, &w, &h);
42 explicit Window(SDL_Window *window) : window_(window) {}
auto get_size() -> std::pair< int32_t, int32_t >
Definition window.hpp:33
static auto create(std::string const &application_name) -> expected< Window >
Definition window.cpp:19
auto get_required_vulkan_extension() const -> expected< std::vector< std::string_view > >
Definition window.cpp:48
auto native_handle() const
Definition window.hpp:39
void dispatch_events(event::Dispatcher const &dispatcher)
Definition window.cpp:423
void shutdown()
Definition window.cpp:38
auto create_surface(::vk::Instance const &instance) -> expected<::vk::SurfaceKHR >
Definition window.cpp:40
tl::expected< T, Err > expected
Definition errors.hpp:49
#define DEFINE_ERROR(cat_name, name,...)
This macro defines an enum with BOOST_DEFINE_ENUM_CLASS and hooks into the std::error_code system The...
Definition errors.hpp:90