group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
GraphicsConfig.cpp File Reference

Implementation of loadGraphicsConfig(). More...

#include "GraphicsConfig.hpp"
#include <cstdio>
#include <cstring>
#include <toml++/toml.hpp>
Include dependency graph for GraphicsConfig.cpp:

Functions

GraphicsConfig loadGraphicsConfig (const char *path)
const char * gpuBackendHintString (GpuBackend backend)
 Map GpuBackend to the string SDL expects in SDL_HINT_GPU_DRIVER.

Detailed Description

Implementation of loadGraphicsConfig().

Function Documentation

◆ gpuBackendHintString()

const char * gpuBackendHintString ( GpuBackend backend)
nodiscard

Map GpuBackend to the string SDL expects in SDL_HINT_GPU_DRIVER.

Returns nullptr for GpuBackend::Auto (do not set the hint).

Here is the caller graph for this function:

◆ loadGraphicsConfig()

GraphicsConfig loadGraphicsConfig ( const char * path)
nodiscard
Here is the caller graph for this function: