Chess
graphics.cpp File Reference

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

#include "graphics.h"
#include <SDL_image.h>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include "chessboard.h"
#include "piece.h"
Include dependency graph for graphics.cpp:

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.