A class representing one segment of a path.
Segments are added to a CYIPath when using the MoveTo(), LineTo(), CubicTo() or Close() methods.
#include <graphics/YiPath.h>
| CYIPath::Segment::Segment |
( |
YI_PATH_CMD |
nType, |
|
|
uint32_t |
nCountHint |
|
) |
| |
| virtual CYIPath::Segment::~Segment |
( |
| ) |
|
|
virtual |
| bool CYIPath::Segment::AddPoint |
( |
const glm::vec2 & |
vPoint | ) |
|
Adds a point to the segment.
| const glm::vec2& CYIPath::Segment::GetPoint |
( |
uint32_t |
nIndex | ) |
const |
Returns the point stored at the index nIndex.
| int32_t CYIPath::Segment::GetPointCount |
( |
| ) |
|
Returns the number of points contained in this segment.
The documentation for this class was generated from the following file: