-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchessboard.h
34 lines (30 loc) · 1.17 KB
/
chessboard.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef CHESSBOARD_H
#define CHESSBOARD_H
////////////////////////////////////////////////////////////
/// \brief Create one of chessboard's square.
///
/// \param chessPtr position for new square
/// \param size size of new square
/// \param color color of new square
///
/// \return a new sfRectangleShape object
////////////////////////////////////////////////////////////
sfRectangleShape* createSquare(sfVector2f position, sfVector2f size, sfColor color);
////////////////////////////////////////////////////////////
/// \brief Create all fields of chessboard.
///
/// \param squares 8x8 sfRectangleShape* array of
/// square fields
///
////////////////////////////////////////////////////////////
void defineChessBoard (sfRectangleShape* squares[8][8]);
////////////////////////////////////////////////////////////
/// \brief Render chessboard's fields.
///
/// \param window window to displaying in
/// \param squares 8x8 sfRectangleShape* array of
/// square fields
///
////////////////////////////////////////////////////////////
void drawChessboard(sfRenderWindow* window, sfRectangleShape* squares[8][8]);
#endif