![]() |
The NEW Pong Game V13.2.1
An interesting implemnettaion of the pong game
|
Implementation of the classic circular ball ClassicBall class. More...
#include "classic_ball.hpp"#include "renderers.hpp"#include "macros.hpp"#include <SDL_image.h>#include <iostream>Functions | |
| void | DrawFilledCircle (SDL_Renderer *renderer, int32_t center_x, int32_t center_y, int32_t radius) |
| Helper function to draw a filled circle. | |
Implementation of the classic circular ball ClassicBall class.
| void DrawFilledCircle | ( | SDL_Renderer * | renderer, |
| int32_t | center_x, | ||
| int32_t | center_y, | ||
| int32_t | radius ) |
Helper function to draw a filled circle.
Uses the midpoint circle algorithm to efficiently render a filled circle
| renderer | The SDL renderer to use for drawing |
| center_x | The x coordinate of the circle's center |
| center_y | The y coordinate of the circle's center |
| radius | The radius of the circle |