Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
Presentation.cpp File Reference
#include "Presentation.hpp"
#include <charconv>
#include <cstdio>
#include <optional>
#include <utility>
Include dependency graph for Presentation.cpp:

Go to the source code of this file.

Namespaces

namespace  monopoly
 
namespace  monopoly::presentation
 

Functions

std::expected< Options, std::string > monopoly::presentation::parseArguments (std::span< const std::string_view > arguments)
 
SDL_WindowFlags monopoly::presentation::windowFlags (const Options &options) noexcept
 
std::pair< int, int > monopoly::presentation::initialWindowSize (const Options &options) noexcept
 
std::expected< void, std::string > monopoly::presentation::configureWindow (SDL_Window *window, const Options &options)
 
std::expected< void, std::string > monopoly::presentation::toggleBorderlessFullscreen (SDL_Window *window, const Options &options)
 
SDL_GPUPresentMode monopoly::presentation::toSDLPresentMode (PresentMode mode) noexcept
 
std::string_view monopoly::presentation::presentModeName (PresentMode mode) noexcept
 
std::string_view monopoly::presentation::windowModeName (WindowMode mode) noexcept
 
std::expected< SDL_GPUPresentMode, std::string > monopoly::presentation::configureSwapchain (SDL_GPUDevice *device, SDL_Window *window, PresentMode requested)