29static constexpr int defaultScreenWidth = 1280;
30static constexpr int defaultScreenHeight = 720;
A central point of control for graphics.
SDL_Window * window() const
void updateWindowSize()
Handles a change in window size, possibly adjusting the scale.
bool apply(const VideoSettings &settings)
Try to apply the given video settings.
const std::vector< DisplayMode > & displayModes() const
void present()
Present the next frame.
Graphics * graphics() const
DisplayMode mDesktopDisplayMode
const VideoSettings & settings() const
Graphics * initialize(const VideoSettings &settings)
Try to create a window with the given settings.
std::vector< DisplayMode > mDisplayModes
const DisplayMode & desktopDisplayMode() const
std::unique_ptr< Graphics > mGraphics
bool operator==(const VideoSettings &other) const