An ellipse. More...
#include <ellipse.hpp>
Public Member Functions | |
| Ellipse (color_t color, radius_t radius1, radius_t radius2, bool fill=false) | |
| Construct an ellipse. | |
| 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 ellipse. | |
| radius_t | radius1 |
| The first radius of the ellipse. | |
| radius_t | radius2 |
| The second radius of the ellipse. | |
An ellipse.
Construct an ellipse.
| color | The ellipse color. |
| radius1 | The horizontal radius. |
| radius2 | The vertical radius. |
| fill | Whether to fill the ellipse 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.