#include <shader_filled_path.hpp>
A Builder is the means of specifying the contours for a ShaderFilledPath.
Definition at line 60 of file shader_filled_path.hpp.
◆ add_path()
void fastuidraw::ShaderFilledPath::Builder::add_path |
( |
float |
tol, |
|
|
const Path & |
path |
|
) |
| |
Add the contours from a Path. Each contour of the passed path will start with a move_to().
- Parameters
-
tol | when approximating an interpolate, the tolerance to use for how close the approximation needs to be |
path | Path to add |
◆ line_to()
void fastuidraw::ShaderFilledPath::Builder::line_to |
( |
vec2 |
pt | ) |
|
Add a line segment connecting the end point of the last curve or line segment of the current contour to a given point.
- Parameters
-
pt | end point of the new line segment |
◆ move_to()
void fastuidraw::ShaderFilledPath::Builder::move_to |
( |
vec2 |
pt | ) |
|
Start a contour. Before starting a new contour the previous contour must be closed by calling line_to() or quadratic_to() connecting to the start point of the previous contour.
- Parameters
-
pt | start point of the new contour |
◆ quadratic_to()
void fastuidraw::ShaderFilledPath::Builder::quadratic_to |
( |
vec2 |
ct, |
|
|
vec2 |
pt |
|
) |
| |
Add a quadratic curveconnecting the end point of the last curve or line segment of the current contour
- Parameters
-
ct | control point of the quadratic curve |
pt | end point of the quadratic curve |
The documentation for this class was generated from the following file: