|
Chess
|
Handles all SDL2 functionalities require to visualize the game. More...
#include <graphics.h>
Public Member Functions | |
| Graphics (const std::string &title) | |
| void | clear () |
| void | update () |
| void | draw_background () |
| void | draw_board () |
| void | draw_pieces (Chessboard &chessboard) |
| void | highlight_tiles (const Chessboard &chessboard) |
| bool | check_pixel_bounds (int x, int y) const |
| int | pixel_to_board (const int &x, const int &y) const |
| Conversion used to go from screen pixel coordinates to board indices. | |
| std::pair< int, int > | board_to_pixel (const int &i) const |
| Conversion used to go from board indices to screen pixel coordinates. | |
Handles all SDL2 functionalities require to visualize the game.
1.8.13