wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::Window Class Reference

#include <window.hpp>

Public Member Functions

void shutdown ()
 
auto create_surface (const ::vk::Instance &instance) -> expected<::vk::SurfaceKHR >
 
void dispatch_events (const event::Dispatcher &dispatcher)
 
auto get_required_vulkan_extension () const -> expected< std::vector< std::string_view > >
 
auto get_size () -> std::pair< int32_t, int32_t >
 
auto native_handle () const
 

Static Public Member Functions

static auto create (const std::string &application_name) -> expected< Window >
 

Private Member Functions

 Window (SDL_Window *window)
 

Private Attributes

SDL_Window * window_
 

Constructor & Destructor Documentation

◆ Window()

wren::Window::Window ( SDL_Window * window)
inlineexplicitprivate

Member Function Documentation

◆ create()

auto wren::Window::create ( const std::string & application_name) -> expected<Window>
static
Here is the caller graph for this function:

◆ create_surface()

auto wren::Window::create_surface ( const ::vk::Instance & instance) -> expected<::vk::SurfaceKHR>

◆ dispatch_events()

void wren::Window::dispatch_events ( const event::Dispatcher & dispatcher)
Here is the call graph for this function:

◆ get_required_vulkan_extension()

auto wren::Window::get_required_vulkan_extension ( ) const -> expected<std::vector<std::string_view>>

◆ get_size()

auto wren::Window::get_size ( ) -> std::pair<int32_t, int32_t>
inline

◆ native_handle()

auto wren::Window::native_handle ( ) const
inline

◆ shutdown()

void wren::Window::shutdown ( )

Member Data Documentation

◆ window_

SDL_Window* wren::Window::window_
private

The documentation for this class was generated from the following files: