Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
Presentation.hpp File Reference
#include <SDL3/SDL.h>
#include <cstdint>
#include <expected>
#include <span>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for Presentation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  monopoly::presentation::Options
 
class  monopoly::presentation::FrameTelemetry
 

Namespaces

namespace  monopoly
 
namespace  monopoly::presentation
 

Enumerations

enum class  monopoly::presentation::WindowMode { monopoly::presentation::Windowed , monopoly::presentation::BorderlessFullscreen , monopoly::presentation::ExclusiveFullscreen }
 
enum class  monopoly::presentation::PresentMode { monopoly::presentation::Vsync , monopoly::presentation::Mailbox , monopoly::presentation::Immediate }
 

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)