coastline 0.0.4
Loading...
Searching...
No Matches
config.h File Reference
#include <array>
#include <cstddef>
#include <filesystem>
#include <map>
#include <optional>
#include <string>
#include <string_view>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  coastline::GameConfig
 The settings of BossRally.ini. More...

Namespaces

namespace  coastline

Functions

std::optional< float > coastline::ParseAspectRatio (std::string_view text)
 Read a finite, positive aspect ratio or an automatic-sizing setting.
std::array< int, 2 > coastline::ExpandInternalResolution (int width, int height, float aspect)
 Expand a resolution to an aspect ratio, with minimum dimensions of 320x240.
std::array< int, 2 > coastline::ScaleFrameResolution (int width, int height, float scale, float aspect)
 Scale window dimensions and fit an aspect ratio before bounded integer conversion.