![]() |
The NEW Pong Game V13.2.1
An interesting implemnettaion of the pong game
|
Functor for rendering square shapes. More...
#include <renderers.hpp>
Public Member Functions | |
| void | operator() (SDL_Renderer *renderer, float pos_x, float pos_y, float size, SDL_Color color) const |
| Renders a square shape at the specified position. | |
Functor for rendering square shapes.
This struct provides an operator to render filled squares at specified positions
| void square_renderer::operator() | ( | SDL_Renderer * | renderer, |
| float | pos_x, | ||
| float | pos_y, | ||
| float | size, | ||
| SDL_Color | color ) const |
Renders a square shape at the specified position.
| renderer | The SDL renderer used for drawing |
| pos_x | The x coordinate of the square's center |
| pos_y | The y coordinate of the square's center |
| size | The side length of the square |
| color | The color to fill the square with |