The NEW Pong Game V13.2.1
An interesting implemnettaion of the pong game
Loading...
Searching...
No Matches
classic_ball.cpp File Reference

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.
 

Detailed Description

Implementation of the classic circular ball ClassicBall class.

Authors
Yanis Sadoun, Vasileios Filippos Skarleas, Dounia Bakalem

Function Documentation

◆ DrawFilledCircle()

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

Parameters
rendererThe SDL renderer to use for drawing
center_xThe x coordinate of the circle's center
center_yThe y coordinate of the circle's center
radiusThe radius of the circle