Turbo Engine 0.3
A C++ game engine using Allegro 5
turbo::CircleShape Class Reference

Simple cicle shape. More...

#include <CircleShape.hpp>

Inheritance diagram for turbo::CircleShape:
Collaboration diagram for turbo::CircleShape:

Public Member Functions

 CircleShape (unsigned short radius=10, const Color &color=Color())
 Construct a circle shape.
void draw () const override
 Draw the drawable -_-.

Public Attributes

unsigned short radius = 10
 Radius of the circle in pixel.
Color color = Color()
 Color of the circle.
float thickness = 1.0f
 Thickness of the border if is_filled is true.
bool is_filled = true
 Is filled or only show border.

Detailed Description

Simple cicle shape.

Constructor & Destructor Documentation

◆ CircleShape()

turbo::CircleShape::CircleShape ( unsigned short radius = 10,
const Color & color = Color() )

Construct a circle shape.

Parameters
radiusradius in pixels
colorfill/outline colour

Member Function Documentation

◆ draw()

void turbo::CircleShape::draw ( ) const
overridevirtual

Draw the drawable -_-.

Implements turbo::Drawable.

Member Data Documentation

◆ color

Color turbo::CircleShape::color = Color()

Color of the circle.

◆ is_filled

bool turbo::CircleShape::is_filled = true

Is filled or only show border.

◆ radius

unsigned short turbo::CircleShape::radius = 10

Radius of the circle in pixel.

◆ thickness

float turbo::CircleShape::thickness = 1.0f

Thickness of the border if is_filled is true.


The documentation for this class was generated from the following files: