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

Header defining renderers for various game shapes. More...

#include <SDL.h>
#include <SDL_ttf.h>
#include <algorithm>

Go to the source code of this file.

Classes

struct  circle_renderer
 Functor for rendering circular shapes. More...
 
struct  square_renderer
 Functor for rendering square shapes. More...
 
struct  triangle_renderer
 Functor for rendering triangle shapes. More...
 

Namespaces

namespace  Utilities
 Utility functions for rendering common UI elements.
 

Functions

void Utilities::render_button (SDL_Renderer *renderer, TTF_Font *font, const char *text, const SDL_Rect &button, const SDL_Color &color)
 Renders a text button on screen.
 

Detailed Description

Header defining renderers for various game shapes.

Authors
Yanis Sadoun, Vasileios Filippos Skarleas, Dounia Bakalem