A circle. More...
#include <circle.hpp>
Public Member Functions | |
| Circle (color_t color, radius_t radius, bool fill=false) | |
| Construct a circle. | |
| void | renderAt (const Coords &coords, const shader_t &shader) const override |
| Display the renderable directly onto the screen. | |
| Size | getSize () const override |
| Get the size of the renderable. | |
Public Attributes | |
| bool | fill |
| Whether the shape is filled or just an outline. | |
| color_t | color |
| The color of the circle. | |
| radius_t | radius |
| The radius of the circle. | |
A circle.
Construct a circle.
| color | The circle color. |
| radius | The circle radius. |
| fill | Whether to fill the circle or just draw an outline. |
|
overridevirtual |
Get the size of the renderable.
Implements ui::Renderable.
Display the renderable directly onto the screen.
| coords | The coordinates to render the first pixel [0,0] of the renderable. |
| shader | An optional pixel shader to apply to each pixel of the renderable. |
Implements ui::Renderable.