A spiral shape. More...
#include <spiral.hpp>
Public Member Functions | |
| Spiral (color_t color, float scale, coord_t innerRadius, float angleTotal, float angleStep=0.2) | |
| Construct the spiral. | |
| 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. | |
A spiral shape.
| ui::Spiral::Spiral | ( | color_t | color, |
| float | scale, | ||
| coord_t | innerRadius, | ||
| float | angleTotal, | ||
| float | angleStep = 0.2 |
||
| ) |
Construct the spiral.
| color | The spiral color. |
| scale | A multiplier that controls the distance between segments after each rotation. |
| innerRadius | The distance from the center at which the spiral starts. |
| angleTotal | The number of radians that the spiral rotates around the center. |
| angleStep | The step size. Larger step sizes are faster to render, but make the curve less round and more angular. |
|
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.