Chess
Classes
graphics.h File Reference

Handles all SDL2 functionalities require to visualize the game. More...

#include <SDL2/SDL.h>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for graphics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Graphics
 Handles all SDL2 functionalities require to visualize the game. More...
 

Detailed Description

Handles all SDL2 functionalities require to visualize the game.

The Graphics class is responsible for handling everything you see on the screen. It loads the sprites stored in /assets, draws them and any other changes of the board state to the screen using SDL2 functionalities.